/* PSPP - a program for statistical analysis.
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2011 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#define HEADER_MOMENTS
#include <stddef.h>
-#include <data/value.h>
+#include "data/value.h"
/* Moments of the mean.
Higher-order moments have higher values. */
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);
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);