#include <config.h>
#include "factor-stats.h"
+#include <data/val-type.h>
#include <data/value.h>
#include <libpspp/hash.h>
#include <libpspp/array.h>
-#include <libpspp/alloc.h>
#include "moments.h"
#include "percentiles.h"
#include <assert.h>
#include "histogram.h"
+#include "xalloc.h"
void
metrics_precalc(struct metrics *m)
moments1_add(fs->moments, x, weight);
-
if ( x < fs->min) fs->min = x;
if ( x > fs->max) fs->max = x;
-
wv = (struct weighted_value **) hsh_probe (fs->ordered_data,(void *) val );
if ( *wv )