#include "hash.h"
#include "val.h"
+
+struct moments1;
+
struct metrics
{
double n;
double n_missing;
- double ssq;
-
- double sum;
-
double min;
double max;
double stddev;
+ struct moments1 *moments;
+
+ double skewness;
+ double kurtosis;
+
double trimmed_mean;
/* A hash of data for this factor.
struct factor_statistics {
- /* The value of the independent variable */
+ /* The values of the independent variables */
union value id[2];
/* The an array stats for this factor, one for each dependent var */
void factor_statistics_free(struct factor_statistics *f);
+/* Compare f0 and f1.
+ width is the width of the independent variable */
int
factor_statistics_compare(const struct factor_statistics *f0,
- const struct factor_statistics *f1, void *aux);
+ const struct factor_statistics *f1, int width);
unsigned int
-factor_statistics_hash(const struct factor_statistics *f, void *aux);
-
-
-
-
-
+factor_statistics_hash(const struct factor_statistics *f, int width);
#endif