projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed some memory leaks.
[pspp-builds.git]
/
src
/
factor_stats.h
diff --git
a/src/factor_stats.h
b/src/factor_stats.h
index cf660c6a1b25ec7634113ddd0e3c0fc91c0b8711..c193f883e47384008781b39bd41333f0969990c5 100644
(file)
--- a/
src/factor_stats.h
+++ b/
src/factor_stats.h
@@
-52,11
+52,18
@@
struct metrics
double trimmed_mean;
double trimmed_mean;
- /* A hash of data for this factor */
+ /* A hash of data for this factor.
+ */
struct hsh_table *ordered_data;
struct hsh_table *ordered_data;
- /* A SORTED array of weighted values */
- struct weighted_value *wv;
+ /* A Pointer to this hash table AFTER it has been SORTED and crunched */
+ struct weighted_value **wvp;
+
+
+ /* The number of values in the above array
+ (if all the weights are 1, then this will
+ be the same as n) */
+ int n_data;
};
};