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