Liste des Groupes | Revenir à cl c |
On 2024-06-12, DFS <nospam@dfs.com> wrote:You're saying some outliers will not be flagged?//no outliersThe condition for 'no outliers' is not the complement of
if ( min > lo && max < hi) {
the condition for 'at least one outlier' below.
Thanks.strcat(outliers,"none (using IQR * 1.5 rule)");This is unnecessary;
}
>
//at least one outlier
if ( min < lo || max > hi) {
for(i = 0; i < N; i++) {
double val = (double)nums[i];
if(val < lo || val > hi) {
sprintf(temp,"%.0f ",val);
temp[strlen(temp)] = '\0';
sprintf terminates the generated string with a null character.
strcat(outliers,temp);
}
}
strcat(outliers," (using IQR * 1.5 rule)");
}
Les messages affichés proviennent d'usenet.