Recurse to simplify flow of covariance_pass_two(). Move tests for V2 into for loop.
[pspp-builds.git] / src / math / ChangeLog
1 2008-07-17  Jason H Stover  <jhs@math.gcsu.edu>
2
3         * covariance-matrix.c (covariance_update_categorical_numeric):
4         Altered to match new code in covariance_pass_two();
5
6         * covariance-matrix.h: Fix declaration of covariance_pass_two.
7
8         * covariance-matrix.c (covariance_pass_two): Moved numeric and
9         categorical scopes of V2 inside for loop. If V1 is not
10         categorical, but V2 is, recurse with the order of the variables
11         reversed to use the code in the previous "if" scope.
12
13 2008-07-16  Jason Stover  <jhs@math.gcsu.edu>
14
15         * covariance-matrix.c (covariance_pass_two): Renamed
16         covariance_pass_one. Fixed update of covariance matrix when both
17         variables are categorical.
18         (column_iterate): New function.
19
20 2008-07-15  Jason Stover  <jhs@math.gcsu.edu>
21
22         * covariance-matrix.c (covariance_pass_one): New file, new function.
23
24 2008-06-21  Jason Stover  <jhs@math.gcsu.edu>
25
26         * linreg.c (pspp_linreg): Accept a struct design_matrix.  Use new
27         accessor functions pspp_coeff_get_mean, pspp_coeff_get_sd.  New
28         functions pspp_linreg_get_indep_variable_mean,
29         pspp_linreg_set_indep_variable_mean,
30         pspp_linreg_get_indep_variable_sd,
31         pspp_linreg_set_indep_variable_sd. Altered pspp_linreg_get_coeff
32         to use accessor function pspp_coeff_var_to_coeff.
33
34         * coefficient.c: New functions pspp_coeff_get_mean,
35         pspp_coeff_set_mean, pspp_coeff_get_sd, pspp_coeff_set_sd,
36         pspp_coeff_var_to_coeff. Added doubles to hold mean and standard
37         deviation in struct varinfo.
38
39 2008-06-14  Jason Stover  <jhs@math.gcsu.edu>
40
41         * linreg/: moved linreg.[ch] to src/math.
42
43 2008-05-15  Ben Pfaff  <blp@gnu.org>
44
45         Patch #6512.
46
47         * moments.c (calc_moments): Use gsl_finite instead of finite, as a
48         stopgap measure for portability until appropriate gnulib modules
49         are available.
50
51 2008-03-10  Jason Stover  <jhs@math.gcsu.edu>
52
53         * coefficient.c (pspp_linreg_get_coeff): Removed use of
54         coefficient 0 as intercept.
55
56 2008-03-01  Jason Stover  <jhs@math.gcsu.edu>
57
58         * coefficient.c (pspp_coeff_init): Ensure first arg is not a null
59         pointer.
60
61         * coefficient.c (pspp_linreg_get_coeff): Make sure we don't return
62         a result beyond the last coefficient, or start with a coefficient
63         beyond the last one if there is only one.
64
65 2007-06-06  Ben Pfaff  <blp@gnu.org>
66
67         Adapt case sources, sinks, and clients of procedure code to the
68         new infrastructure.
69
70         * automake.mk: Add new files.
71         
72         * levene.c: Adapt to new casereaders.  Abstract better.
73
74         * merge.c: New file.
75
76         * merge.h: New file.
77
78         * sort.c: Rewrite in terms of case_ordering, merger.
79
80 2007-05-31  Jason Stover  <jhs@math.gcsu.edu>
81
82         * interaction.c: New file.
83         * interaction.h : New file.
84
85 Mon Feb  5 15:42:14 2007  Ben Pfaff  <blp@gnu.org>
86
87         * moments.c (moments_pass_two): Reduce number of multiplications.
88
89 Thu Dec  7 15:27:49 WST 2006 John Darrington <john@darrington.wattle.id.au>
90
91         * factor-stats.c factor-stats.h: Changed independent values to 
92         be pointers rather than copies.
93
94 Wed Dec  6 21:14:59 2006  Ben Pfaff  <blp@gnu.org>
95
96         * coefficient.c: (pspp_coeff_get_value) Compare variable pointers
97         instead of variable indexes.
98         (pspp_linreg_get_coeff) Ditto.
99         (design_matrix_col_to_var_index) Removed.
100         (design_matrix_col_to_var) Compare variable pointers
101         instead of variable indexes.
102         (cmp_dm_var_index) Ditto.
103         (design_matrix_var_to_column) Ditto.
104         (dm_var_to_last_column) Ditto.
105
106 Sun Nov  5 08:30:32 WST 2006 John Darrington <john@darrington.wattle.id.au>
107
108         * levene.c levene.h Changed to use the new casefilter structure.
109
110 2006-07-15  Jason Stover  <jhs@math.gcsu.edu>
111
112         * coefficient.c (pspp_coeff_init): Make design_matrix arg const.
113
114 2006-07-14  Jason Stover  <jhs@math.gcsu.edu>
115
116         * coefficient.c (pspp_coeff_init): Removed use of
117         pspp_linreg_cache to make the routines more generally useful.
118
119 2006-05-19  Jason Stover  <jhs@math.gcsu.edu>
120
121         * coefficient.h: Renamed pspp_linreg_coeff to pspp_coeff.
122
123         * coefficient.c: Moved to src/math.
124
125         * coefficient.h: Moved to src/math.
126
127 Tue May  9 21:09:37 2006  Ben Pfaff  <blp@gnu.org>
128
129         * sort.c (sort_active_file_to_casefile): Check return value of
130         multipass_procedure().
131
132 Wed May  3 23:06:43 2006  Ben Pfaff  <blp@gnu.org>
133
134         Continue reforming procedure execution.  In this phase, get rid of
135         many global variables, consolidating procedure execution in
136         procedure.c.  Encapsulate transformations in new "struct
137         trns_chain".  Also, change implementation of N OF CASES, FILTER,
138         and PROCESS IF from special cases to transformations.
139          
140         * sort.c: (prepare_to_sort_active_file) Don't run a procedure
141         here.
142         (sort_active_file_in_place) Rewrite to run a procedure, capture
143         the output, sort the output, and set that as the source for the
144         next procedure.
145         (struct sort_to_casefile_cb_data) New structure.
146         (sort_to_casefile_callback) New function.
147         (sort_active_file_to_casefile) Rewrite to use
148         multipass_procedure().
149
150 Sat Apr 29 11:09:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
151
152         * removed unused variable.
153
154 Sat Apr 15 18:01:22 2006  Ben Pfaff  <blp@gnu.org>
155
156         * factor-stats.c (metrics_postcalc): Add casts to fix warnings.
157
158 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
159         
160         * Moved files from src directory