X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fmoments.h;h=553fba62ba4d66bb4b82499cf1c56aa08db8f9a9;hb=f447ebdf19acf26d2d46cee1595e99c3620ee30d;hp=55c517e5217864cda1a1607485c8347d1c1bbf1f;hpb=fe8dc2171009e90d2335f159d05f7e6660e24780;p=pspp diff --git a/src/math/moments.h b/src/math/moments.h index 55c517e521..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 stddev, double weight); +double calc_semean (double variance, double weight); double calc_seskew (double weight); double calc_sekurt (double weight);