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