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 1b91e84eb717296c5bbf1e57fe1477ab52f1b207..a97d7f09349b7fabe25c49383357f87103205ac7 100644
(file)
--- a/
src/math/factor-stats.c
+++ b/
src/math/factor-stats.c
@@
-16,6
+16,7
@@
#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>
@@
-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 )