Memory leak patrol.
[pspp-builds.git] / src / language / stats / ChangeLog
1 Sun Oct  8 09:45:40 WST 2006 John Darrington <john@darrington.wattle.id.au>
2
3         * rank.q: Plugged a small memory leak which occurred under error
4         conditions.
5         
6 Sat Oct  7 11:06:01 WST 2006 John Darrington <john@darrington.wattle.id.au>
7
8         * rank.q: Implemented most of the RANK command.
9
10 2006-07-14  Jason Stover  <jhs@math.gcsu.edu>
11
12         * regression.q (run_regression): New function to move knowledge of
13         pspp_linreg_cache out of math/coefficient.[ch].
14
15 Sat Jul  1 17:41:46 2006  Ben Pfaff  <blp@gnu.org>
16
17         Fix bug #11612, "q2c documentation does not agree with code".
18         
19         * examine.q: Audit use of q2c "+" prefixes that indicate that a
20         command may appear multiple times.
21
22         * frequencies.q: Ditto.
23
24         * oneway.q: Ditto.
25
26         * regression.q: Ditto.
27
28         * t-test.q: Ditto.
29
30 Fri Jun 23 14:18:22 2006  Ben Pfaff  <blp@gnu.org>
31
32         Support long string variables on FREQUENCIES, as
33         an extension when in enhanced algorithms mode.  For Greg Hunt
34         <greg@firmansyah.com>.
35         
36         * frequencies.q: (struct freq) Change `v' member from union value
37         to union value *.  Update all references.
38         (struct var_freqs) Add width, print members to represent effective
39         variable width and display format.
40         (calc) Copy entire long string value into the hash table.
41         (frq_custom_variables) Set new width, print members.
42         (hash_value_alpha) Get width from var_freqs.
43         (compare_value_alpha_a) Ditto.
44         (compare_freq_alpha_a) Ditto.
45         (compare_freq_alpha_d) Ditto.
46         (dump_full) Get display format from var_freqs.
47         (dump_condensed) Ditto.
48
49 Mon Jun 19 22:07:13 2006  Ben Pfaff  <blp@gnu.org>
50
51         * frequencies.q: (dump_full) Only put the first MAX_SHORT_STRING
52         bytes of string variables into the output cells, seeing as we only
53         copy that many.
54         (dump_condensed) Ditto.
55
56 Mon Jun 19 21:52:05 2006  Ben Pfaff  <blp@gnu.org>
57
58         Fixes a bug reported by Greg Hunt <greg@firmansyah.com>.
59         
60         * frequencies.q: (hsh_hash_bytes) We only copy the first
61         MAX_SHORT_STRING bytes of string variables, so we must only
62         compare that many bytes, even if the string variable is longer.
63         (compare_value_alpha_a) Ditto.
64         (compare_freq_alpha_a) Ditto.
65         (compare_freq_alpha_d) Ditto.
66
67 2006-05-11  Jason Stover  <jhs@math.gcsu.edu>
68
69         * regression.q: Adjusted code to account for cache->coeff being a
70         pspp_linreg_coeff **.
71
72 Sun May  7 18:31:25 2006  Ben Pfaff  <blp@gnu.org>
73
74         Fix memory leak.
75         
76         * aggregate.c (cmd_aggregate): Free default_dict before replacing
77         it.
78
79 Sun May  7 17:09:19 2006  Ben Pfaff  <blp@gnu.org>
80
81         * flip.c (flip_file): Check return value of pool_fclose().
82
83 Sat May  6 16:00:13 2006  Ben Pfaff  <blp@gnu.org>
84
85         Get rid of `char *c' member in union value, for cleanliness.
86         
87         * aggregate.c: (union agr_argument) New union.
88         (struct agr_var) Change element type of arg[] from union value to
89         union agr_argument.
90         (parse_aggregate_functions) Change local variable types likewise.
91
92         * autorecode.c: (union arc_value) New union.
93         (struct arc_item) Change "from" from union value to union
94         arc_value.
95         (recode) Change local variable from union value to union
96         arc_value.
97         (autorecode_trns_proc) Ditto.
98         (compare_alpha_value) Ditto.
99         (hash_alpha_value) Ditto.
100         (compare_numeric_value) Ditto.
101         (hash_numeric_value) Ditto.
102         (autorecode_proc_func) Ditto.
103
104 Sat May  6 10:43:33 2006  Ben Pfaff  <blp@gnu.org>
105
106         Continue reforming procedure execution.  In this phase, get rid of
107         the output code for SPLIT FILE groups in procedure.c, which really
108         shouldn't be doing any output.  Move it into the individual
109         procedures instead.  This also adds some flexibility.
110
111         * crosstabs.q (precalc): Call output_split_file_values().
112
113         * descriptives.c (calc_descriptives): Ditto.
114
115         * examine.q (run_examine): Ditto.
116         
117         * frequencies.q (precalc): Ditto.
118
119         * oneway.q (run_oneway): Ditto.
120
121         * regression.q (run_regression): Ditto.
122
123         * t-test.q (calculate): Ditto.
124
125 Wed May  3 23:05:31 2006  Ben Pfaff  <blp@gnu.org>
126
127         Continue reforming procedure execution.  In this phase, get rid of
128         many global variables, consolidating procedure execution in
129         procedure.c.  Encapsulate transformations in new "struct
130         trns_chain".  Also, change implementation of N OF CASES, FILTER,
131         and PROCESS IF from special cases to transformations.
132          
133         * aggregate.c (cmd_aggregate) Use discard_variables().
134         
135 2006-04-28  Jason Stover  <jhs@math.gcsu.edu>
136
137         * regression.q (regression_trns_resid_proc): Pass only the
138         variables used in the model to (*model->residual)().
139
140         * regression.q (regression_trns_pred_proc): Pass only the
141         variables used in the model to (*model->pred)().
142
143 2006-04-26  Jason Stover  <jhs@math.gcsu.edu>
144
145         * regression.q: Added support for multiple transformations.
146         
147         * regression.q (regression_trns_resid_proc): New function.
148
149         * regression.q (regression_trns_pred_proc): New function.
150
151         * regression.q (subcommand_save): Added support for saving
152         predicted values.
153
154         * regression.q (regression_trns_free): New function. 
155
156         * regression.q (reg_get_name): New function.
157
158         * regression.q (reg_save_var): New function.
159
160 Tue Apr 25 13:18:56 2006  Ben Pfaff  <blp@gnu.org>
161
162         * rank.q (parse_rank_function): Use SE instead of ME for parse
163         errors.
164
165 Tue Apr 25 13:16:28 2006  Ben Pfaff  <blp@gnu.org>
166
167         * flip.c (flip_sink_write): Use snprintf() to simplify a bit of
168         code.
169
170 2006-04-21  Jason Stover  <jhs@math.gcsu.edu>
171
172         * regression.q (try_name): New function. (Partly copied from
173         try_name in descriptives.c.)
174
175         * regression.q (subcommand_save): Choose residual variable names
176         correctly. 
177
178 2006-04-20  Jason Stover  <jhs@math.gcsu.edu>
179
180         * regression.q (cmd_regression): Moved call to subcommand_save()
181         outside multipass_procedure_with_splits().
182         
183         * regression.q (regression_trns_proc): Fixed value counter n_vals
184         before calling *model->residual().
185
186 2006-04-19  Jason Stover  <jhs@math.gcsu.edu>
187
188         * regression.q (regression_trns_proc): Fixed the look-up of the
189         number of variables.
190
191 2006-04-18  Jason Stover  <jhs@math.gcsu.edu>
192
193         * regression.q (regression_trns_proc): Look up the residual
194         variable in the linear regression cache.
195
196         * regression.q (subcommand_save): Set the residual variable in the
197         linear regression cache.
198
199 2006-04-17  Jason Stover  <jason@wonko.gcsu.edu>
200
201         * regression.q (regression_trns_proc): Accept case_idx as an int
202         to match the definition of trns_proc_func.
203
204 2006-04-17  Jason Stover  <jhs@math.gcsu.edu>
205
206         * regression.q (regression_trns_proc): New function.
207
208         * regression.q (subcommand_save): Create variable residuals and
209         add a transformation to assign values to them. Also free the
210         linreg_cache if the SAVE command was not called. Removed the
211         casereading loop. Placed actual computation of residuals in
212         regression_trns_proc.
213
214         * regression.q (run_regression): Moved call to free
215         pspp_linreg_cache to subcommand_save.
216
217 Sat Apr 15 18:01:03 2006  Ben Pfaff  <blp@gnu.org>
218
219         * examine.q (output_examine): Add casts to fix warnings.
220
221 2006-04-07  Jason Stover  <jhs@math.gcsu.edu>
222
223         * regression.q (subcommand_save): New function.
224
225 2006-04-04  Jason Stover  <jhs@math.gcsu.edu>
226
227         * regression.q: New function reg_has_categorical () to tell
228         whether a pspp_linreg_struct was made with any variables of type
229         ALPHA.
230
231         * regression.q: (subcommand_export): Call
232         reg_print_categorical_encoding() only if the model uses any
233         categorical variables.
234
235 Mon Mar 27 16:00:42 2006  Ben Pfaff  <blp@gnu.org>
236
237         * crosstabs.q: (output_pivot_table) Drop spurious space from
238         message.
239
240 2006-03-15  Jason Stover  <jhs@math.gcsu.edu>
241
242         * regression.q: Added custom syntax parser for VARIABLES subcommand
243
244         * regression.q: Moved most instructions for run_regression ()
245         inside the loop over dependent variables.
246
247 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
248         
249         * Moved files from src directory