X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fmoments.h;h=553fba62ba4d66bb4b82499cf1c56aa08db8f9a9;hb=a0ee1f3ba1dd37945983ea651c98b49b318d3e2f;hp=8bf916592e759879a849020a18b20534cc394387;hpb=e03970503d5ba427ada341596db8e55f5cd91fad;p=pspp diff --git a/src/math/moments.h b/src/math/moments.h index 8bf916592e..553fba62ba 100644 --- a/src/math/moments.h +++ b/src/math/moments.h @@ -45,11 +45,11 @@ void moments_calculate (const struct moments *, void moments_destroy (struct moments *); /* Convenience functions for two-pass moments. */ -void moments_of_doubles (const double *array, size_t cnt, +void moments_of_doubles (const double *array, size_t n, double *weight, double *mean, double *variance, double *skewness, double *kurtosis); -void moments_of_values (const union value *array, size_t cnt, +void moments_of_values (const union value *array, size_t n, double *weight, double *mean, double *variance, double *skewness, double *kurtosis); @@ -65,7 +65,7 @@ void moments1_calculate (const struct moments1 *, void moments1_destroy (struct moments1 *); /* Standard errors. */ -double calc_semean (double var, double weight); +double calc_semean (double variance, double weight); double calc_seskew (double weight); double calc_sekurt (double weight);