projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug reporting the significance of paired value t-test.
[pspp-builds.git]
/
src
/
math
/
factor-stats.c
diff --git
a/src/math/factor-stats.c
b/src/math/factor-stats.c
index 836fba985460350cbb30a8387d14cdade1b898c0..a97d7f09349b7fabe25c49383357f87103205ac7 100644
(file)
--- a/
src/math/factor-stats.c
+++ b/
src/math/factor-stats.c
@@
-16,10
+16,10
@@
#include <config.h>
#include "factor-stats.h"
#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 <data/value.h>
#include <libpspp/hash.h>
#include <libpspp/array.h>
-#include <libpspp/alloc.h>
#include "moments.h"
#include "percentiles.h"
#include "moments.h"
#include "percentiles.h"
@@
-29,6
+29,7
@@
#include <assert.h>
#include "histogram.h"
#include <assert.h>
#include "histogram.h"
+#include "xalloc.h"
void
metrics_precalc(struct metrics *m)
void
metrics_precalc(struct metrics *m)
@@
-72,11
+73,9
@@
metrics_calc (struct metrics *fs, const union value *val,
moments1_add(fs->moments, x, weight);
moments1_add(fs->moments, x, weight);
-
if ( x < fs->min) fs->min = x;
if ( x > fs->max) fs->max = x;
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 )
wv = (struct weighted_value **) hsh_probe (fs->ordered_data,(void *) val );
if ( *wv )