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