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