Sujet : Re: "undefined behavior"?
De : lew.pitcher (at) *nospam* digitalfreehold.ca (Lew Pitcher)
Groupes : comp.lang.cDate : 13. Jun 2024, 16:49:46
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4f4eq$2aan2$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
On Thu, 13 Jun 2024 11:13:04 -0400, DFS wrote:
On 6/13/2024 3:25 AM, Ike Naar wrote:
On 2024-06-12, DFS <nospam@dfs.com> wrote:
//no outliers
if ( min > lo && max < hi) {
The condition for 'no outliers' is not the complement of
the condition for 'at least one outlier' below.
You're saying some outliers will not be flagged?
[1] How does the above statement evaluate when (min == low) and (max == hi)?
strcat(outliers,"none (using IQR * 1.5 rule)");
}
>
//at least one outlier
if ( min < lo || max > hi) {
[2] How does the above statement evaluate when (min == low) and (max == hi)?
[3] Given the answers to questions 1 and 2, are there any values that
satisfy /both/ the "no outliers" and "at least one outlier" conditions?
Are there any values that satisfy /neither/ conditions?
[snip]
HTH
-- Lew Pitcher"In Skills We Trust"