pspp-builds.git
14 years agoAdded a menu entry and dialog box for the FACTOR command.
John Darrington [Sun, 27 Dec 2009 17:25:26 +0000 (18:25 +0100)]
Added a menu entry and dialog box for the FACTOR command.

14 years agoRemove unused declarations
John Darrington [Sun, 27 Dec 2009 10:40:46 +0000 (11:40 +0100)]
Remove unused declarations

14 years agoChange GTK_SIGNAL_FUNC to G_CALLBACK.
John Darrington [Sun, 27 Dec 2009 10:28:07 +0000 (11:28 +0100)]
Change GTK_SIGNAL_FUNC to G_CALLBACK.

These macros are identical, but for consistency I've changed them
all to the latter.

14 years agoAvoid warning about GtkAdjustments with non-zero page_size
John Darrington [Sun, 27 Dec 2009 10:12:24 +0000 (11:12 +0100)]
Avoid warning about GtkAdjustments with non-zero page_size

14 years agoAdded documentation for the FACTOR command fc11-i386-build65 fc11-x64-build62 lenny-x64-build86 sid-i386-build132
John Darrington [Sat, 26 Dec 2009 09:30:09 +0000 (10:30 +0100)]
Added documentation for the FACTOR command

14 years agoFACTOR: Added "Scree Plots" fc11-i386-build64 fc11-x64-build61 lenny-x64-build85 sid-i386-build131
John Darrington [Fri, 25 Dec 2009 18:18:13 +0000 (19:18 +0100)]
FACTOR: Added  "Scree Plots"

14 years agoRemove obsolete file
John Darrington [Fri, 25 Dec 2009 09:59:17 +0000 (10:59 +0100)]
Remove obsolete file

14 years agoMerge branch 'master' into output
John Darrington [Fri, 25 Dec 2009 09:51:01 +0000 (10:51 +0100)]
Merge branch 'master' into output

Conflicts:

configure.ac

14 years agoFix fault XML in documentation. fc11-i386-build63 fc11-x64-build60 lenny-x64-build84 sid-i386-build130
John Darrington [Thu, 24 Dec 2009 16:05:12 +0000 (17:05 +0100)]
Fix fault XML in documentation.

Avoid broken XML generated by Texinfo. Add a make rule
to check for this in the future.

14 years agoNew translations from http://translationproject.org fc11-i386-build62 fc11-x64-build59 lenny-x64-build83 sid-i386-build129
John Darrington [Thu, 24 Dec 2009 12:37:53 +0000 (13:37 +0100)]
New translations from translationproject.org

14 years agoFACTOR: Implemented the /PRINT=CORRELATIONS SIG DETERMINANT subcommands
John Darrington [Thu, 24 Dec 2009 12:33:45 +0000 (13:33 +0100)]
FACTOR: Implemented the /PRINT=CORRELATIONS SIG DETERMINANT subcommands

14 years agoFACTOR: Remove diagnostic messages
John Darrington [Wed, 23 Dec 2009 19:11:06 +0000 (20:11 +0100)]
FACTOR: Remove diagnostic messages

14 years agoFirst attempt at FACTOR command
John Darrington [Wed, 23 Dec 2009 17:39:31 +0000 (18:39 +0100)]
First attempt at FACTOR command

14 years agoMerge branch 'master' into output fc11-i386-build61 fc11-x64-build58 lenny-x64-build82 sid-i386-build128
John Darrington [Fri, 18 Dec 2009 19:34:12 +0000 (20:34 +0100)]
Merge branch 'master' into output

Conflicts:

NEWS
configure.ac
src/output/charts/dummy-chart.c

14 years agoRemove gettext markup from g_param_spec arguments. fc11-i386-build60 fc11-x64-build57 lenny-x64-build81 sid-i386-build127
John Darrington [Fri, 18 Dec 2009 18:48:44 +0000 (19:48 +0100)]
Remove gettext markup from g_param_spec arguments.

These strings are never seen by users, so there's little
point in translating them.

14 years agoAdded the Catalan translation from http://translationproject.org
John Darrington [Fri, 18 Dec 2009 18:15:56 +0000 (19:15 +0100)]
Added the Catalan translation from translationproject.org

14 years agoLinear Regression: Dependent variables should not be strings. fc11-i386-build59 fc11-x64-build56 lenny-x64-build80 sid-i386-build126
John Darrington [Wed, 16 Dec 2009 20:52:17 +0000 (21:52 +0100)]
Linear Regression: Dependent variables should not be strings.

Prevent the gui from selecting string variables as the dependent
variable in a linear regression procedure, since that's not
allowed in such a procedure.

14 years agoMerge commit 'origin/stable' fc11-i386-build58 fc11-x64-build55 lenny-x64-build79 sid-i386-build125
John Darrington [Wed, 16 Dec 2009 20:09:55 +0000 (21:09 +0100)]
Merge commit 'origin/stable'

Conflicts:

NEWS
configure.ac
po/nl.po
src/ui/gui/dict-display.c

14 years agoFix bug in ROC parsing long string variables fc11-i386-build57 fc11-x64-build54 lenny-x64-build78 sid-i386-build124
John Darrington [Wed, 16 Dec 2009 19:52:33 +0000 (20:52 +0100)]
Fix bug in ROC parsing long string variables

14 years agoProperly escape marked up text in dictionary views fc11-i386-build56 fc11-x64-build53 lenny-x64-build77 sid-i386-build123
John Darrington [Wed, 16 Dec 2009 19:30:08 +0000 (20:30 +0100)]
Properly escape marked up text in dictionary views

14 years agoEnsure all symbols in glade library are resolved fc11-i386-build55 fc11-x64-build52 lenny-x64-build76 sid-i386-build122
John Darrington [Wed, 16 Dec 2009 19:08:22 +0000 (20:08 +0100)]
Ensure all symbols in glade library are resolved

14 years agoNew interface PsppireSelectDestWidget.
John Darrington [Wed, 16 Dec 2009 18:49:22 +0000 (19:49 +0100)]
New interface PsppireSelectDestWidget.

Created a new interface type PsppireSelectDestWidget to serve
as an abstract widget which can be the destination for a PsppireSelector.
Changed PsppireVarView to implement this interface.

14 years agoRemove unused GtkAdjustment objects
John Darrington [Tue, 15 Dec 2009 18:18:51 +0000 (19:18 +0100)]
Remove unused GtkAdjustment objects

14 years agoRename src/output/charts/box-whisker.[ch] to src/output/charts/boxplot.[ch]. fc11-i386-build54 fc11-x64-build51 lenny-x64-build75 sid-i386-build121
Ben Pfaff [Mon, 14 Dec 2009 05:39:18 +0000 (21:39 -0800)]
Rename src/output/charts/box-whisker.[ch] to src/output/charts/boxplot.[ch].

This makes the structure names more obvious and prevents confusion
with src/math/box-whisker.[ch].

14 years agoGet rid of superfluous Makefile in src/output/charts. fc11-i386-build53 fc11-x64-build50 lenny-x64-build74 sid-i386-build120
Ben Pfaff [Mon, 14 Dec 2009 05:37:08 +0000 (21:37 -0800)]
Get rid of superfluous Makefile in src/output/charts.

14 years agoFix missing menu label
John Darrington [Mon, 14 Dec 2009 19:01:38 +0000 (20:01 +0100)]
Fix missing menu label

14 years agoDon't allow string variables in ROC dialog as dependent variable
John Darrington [Mon, 14 Dec 2009 18:51:16 +0000 (19:51 +0100)]
Don't allow string variables in ROC dialog as dependent variable

14 years agoRemove unused code
John Darrington [Mon, 14 Dec 2009 18:28:46 +0000 (19:28 +0100)]
Remove unused code

14 years agoShow only numeric variables in correlations dialog
John Darrington [Mon, 14 Dec 2009 18:21:51 +0000 (19:21 +0100)]
Show only numeric variables in correlations dialog

14 years agoMerge branch 'master' of ssh://john@cellform.com/home/john/Development/pspp-selector
John Darrington [Sun, 13 Dec 2009 19:40:38 +0000 (20:40 +0100)]
Merge branch 'master' of ssh://john@cellform.com/home/john/Development/pspp-selector

14 years agoMerge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp
John Darrington [Sun, 13 Dec 2009 19:39:35 +0000 (20:39 +0100)]
Merge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp

14 years agoAdded a dialog box for the CORRELATION command
John Darrington [Sun, 13 Dec 2009 19:37:13 +0000 (20:37 +0100)]
Added a dialog box for the CORRELATION command

14 years agoNew function psppire_var_view_contains_var
John Darrington [Sun, 13 Dec 2009 14:50:09 +0000 (15:50 +0100)]
New function psppire_var_view_contains_var

Added a function to test whether a variable is currently
contained within a PsppireVarView widget.

14 years agoChange psppire_dicts pointers from G_POINTER to PSPPIRE_VAR_PTR_TYPE
John Darrington [Sun, 13 Dec 2009 14:45:34 +0000 (15:45 +0100)]
Change psppire_dicts pointers from G_POINTER to PSPPIRE_VAR_PTR_TYPE

14 years agoSet the dictionary encoding of files created by the perl module. fc11-i386-build52 fc11-x64-build49 lenny-x64-build73 sid-i386-build119
John Darrington [Sun, 13 Dec 2009 12:19:27 +0000 (13:19 +0100)]
Set the dictionary encoding of files created by the perl module.

This *assumes* that all strings passed from perl will be utf8
encoded.  So the documentation has been updated accordingly.

14 years agoROC dialog: Disable reference button when curve is not drawn
John Darrington [Sat, 12 Dec 2009 20:35:23 +0000 (21:35 +0100)]
ROC dialog: Disable reference button when curve is not drawn

14 years agoImplemented a dialog box for the ROC command
John Darrington [Sat, 12 Dec 2009 15:48:02 +0000 (16:48 +0100)]
Implemented a dialog box for the ROC command

14 years agoRemove awkward dependency from psppire-selector.c
John Darrington [Sat, 12 Dec 2009 11:55:57 +0000 (12:55 +0100)]
Remove awkward dependency from psppire-selector.c

Removed the default selection functions from being
statically linked to psppire-selector.c  - apart from
being inelegant this caused a lot of unncessary dependencies
in the glade module.

14 years agoRemove unused code
John Darrington [Sat, 12 Dec 2009 09:29:43 +0000 (10:29 +0100)]
Remove unused code

14 years agoRework the recode-dialog to fit new selector / psppire-var-view objects.
John Darrington [Sat, 12 Dec 2009 09:26:31 +0000 (10:26 +0100)]
Rework the recode-dialog to fit new selector / psppire-var-view objects.

14 years agoRemove AFM files. fc11-i386-build51 fc11-x64-build48 lenny-x64-build72 sid-i386-build118
Ben Pfaff [Tue, 8 Dec 2009 05:01:41 +0000 (21:01 -0800)]
Remove AFM files.

Now that the PostScript driver is gone, there is no longer any need for
these.

Thanks to John Darrington <john@cellform.com> for pointing out that they
are no longer necessary.

14 years agooutput: Remove PostScript driver. fc11-i386-build50 fc11-x64-build47 lenny-x64-build71 sid-i386-build117
Ben Pfaff [Sun, 6 Dec 2009 04:44:01 +0000 (20:44 -0800)]
output: Remove PostScript driver.

The Cairo driver is a better way to produce PostScript output.  There seems
little value in maintaining the historical PostScript driver.

Removing the PostScript driver also makes for less work in revamping the
output subsystem, since there are now fewer drivers to update.

14 years agofile-name: Generalize fn_interp_vars(). fc11-i386-build49 fc11-x64-build46 lenny-x64-build70
Ben Pfaff [Sun, 6 Dec 2009 04:32:35 +0000 (20:32 -0800)]
file-name: Generalize fn_interp_vars().

This more general-purpose version of fn_interp_vars() will be useful in an
upcoming commit.

14 years agocasereader: New function casereader_select(). fc11-i386-build48 fc11-x64-build45 lenny-x64-build69 sid-i386-build116
Ben Pfaff [Sun, 6 Dec 2009 04:19:58 +0000 (20:19 -0800)]
casereader: New function casereader_select().

14 years agocasereader: New functions casereader_project() and casereader_project_1(). fc11-i386-build47 fc11-x64-build44 lenny-x64-build68
Ben Pfaff [Sun, 6 Dec 2009 04:12:54 +0000 (20:12 -0800)]
casereader: New functions casereader_project() and casereader_project_1().

14 years agocasereader: New function casereader_translate_stateless(). fc11-i386-build46 fc11-x64-build43 lenny-x64-build67 sid-i386-build115
Ben Pfaff [Sun, 6 Dec 2009 04:04:30 +0000 (20:04 -0800)]
casereader: New function casereader_translate_stateless().

14 years agocasereader: New function casereader_create_empty().
Ben Pfaff [Sun, 6 Dec 2009 02:30:51 +0000 (18:30 -0800)]
casereader: New function casereader_create_empty().

14 years agocasereader: New function casereader_advance(). fc11-i386-build45 fc11-x64-build42 lenny-x64-build66 sid-i386-build114
Ben Pfaff [Sat, 5 Dec 2009 22:49:07 +0000 (14:49 -0800)]
casereader: New function casereader_advance().

14 years agocasereader: New function casereader_truncate(). fc11-i386-build44 fc11-x64-build41 lenny-x64-build65 sid-i386-build113
Ben Pfaff [Sat, 5 Dec 2009 20:32:59 +0000 (12:32 -0800)]
casereader: New function casereader_truncate().

14 years agosubcase: Add more useful functions. fc11-i386-build43 fc11-x64-build40 lenny-x64-build64 sid-i386-build112
Ben Pfaff [Thu, 26 Nov 2009 05:27:17 +0000 (21:27 -0800)]
subcase: Add more useful functions.

14 years agoNew data type string_map, a string-to-string map. fc11-i386-build42 fc11-x64-build39 lenny-x64-build63 sid-i386-build111
Ben Pfaff [Sat, 5 Dec 2009 19:56:50 +0000 (11:56 -0800)]
New data type string_map, a string-to-string map.

14 years agoUpdate to reflect latest copy of Gnulib
John Darrington [Thu, 3 Dec 2009 20:50:15 +0000 (21:50 +0100)]
Update to reflect latest copy of Gnulib

Conflicts:

README.Git
src/data/make-file.c

14 years agoNew data type string_set, a set of unique strings. fc11-i386-build41 fc11-x64-build38 lenny-x64-build62 sid-i386-build110
Ben Pfaff [Thu, 26 Nov 2009 05:21:03 +0000 (21:21 -0800)]
New data type string_set, a set of unique strings.

14 years agohmapx: New function hmapx_is_empty().
Ben Pfaff [Thu, 26 Nov 2009 05:19:04 +0000 (21:19 -0800)]
hmapx: New function hmapx_is_empty().

14 years agohmap: New function hmap_is_empty().
Ben Pfaff [Thu, 26 Nov 2009 05:18:50 +0000 (21:18 -0800)]
hmap: New function hmap_is_empty().

14 years agohmap: Remove shadowed variable from inner scope.
Ben Pfaff [Fri, 27 Nov 2009 18:57:49 +0000 (10:57 -0800)]
hmap: Remove shadowed variable from inner scope.

'j' is also declared at the top level of the function so there is no
need to declare it inside the 'for' loop.

14 years agoMerge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp
John Darrington [Tue, 24 Nov 2009 18:50:01 +0000 (19:50 +0100)]
Merge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp

14 years agoSearch for a gettext implementation at configure time fc11-i386-build40 fc11-x64-build37 lenny-x64-build61 sid-i386-build109
John Darrington [Tue, 24 Nov 2009 18:31:05 +0000 (19:31 +0100)]
Search for a gettext implementation at configure time

14 years agoNew module psppire-var-view
John Darrington [Mon, 23 Nov 2009 19:03:05 +0000 (20:03 +0100)]
New module psppire-var-view

Added a new object PsppireVarView which is a subclass
of GtkTreeView.   It automatically creates a model for
itself for the storage of variables.

This change breaks some features.  These must be corrected
in subsequenct commits.

14 years agoEnsure that only one set of callbacks exist.
John Darrington [Thu, 19 Nov 2009 18:37:37 +0000 (19:37 +0100)]
Ensure that only one set of callbacks exist.

Remove any existing selector callbacks before adding
new ones.  Otherwise a keyclick can add 2 or more
items instead of the desired one.

14 years agoCall covariance_accumulate_pass2 fc11-i386-build39 fc11-x64-build36 lenny-x64-build60 sid-i386-build108
Jason H Stover [Wed, 18 Nov 2009 21:51:33 +0000 (16:51 -0500)]
Call covariance_accumulate_pass2

14 years agoMerge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp
John Darrington [Wed, 18 Nov 2009 19:41:06 +0000 (20:41 +0100)]
Merge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp

14 years agoUpdate to reflect latest copy of Gnulib fc11-i386-build38 fc11-x64-build35 lenny-x64-build59 sid-i386-build107
John Darrington [Wed, 18 Nov 2009 19:40:25 +0000 (20:40 +0100)]
Update to reflect latest copy of Gnulib

14 years agoFix problem building with --without-libplot
John Darrington [Wed, 18 Nov 2009 19:00:45 +0000 (20:00 +0100)]
Fix problem building with --without-libplot

14 years agoFix property erroneously altered in commit a9a69251edd625a50f271af5d64c157533b5fe48
John Darrington [Wed, 18 Nov 2009 18:10:48 +0000 (19:10 +0100)]
Fix property erroneously altered in commit a9a69251edd625a50f271af5d64c157533b5fe48

14 years agoFix separation of categorical and numeric variables. fc11-i386-build37 fc11-x64-build34 lenny-x64-build58 sid-i386-build106
Jason H Stover [Tue, 17 Nov 2009 21:48:45 +0000 (16:48 -0500)]
Fix separation of categorical and numeric variables.
Enforce numeric type for dependent variables.
Name the covariance struct returned by covariance_2pass_create as cov.

14 years agoSeparated psppire_selector_set_subjects into two individual functions
John Darrington [Tue, 17 Nov 2009 18:29:56 +0000 (19:29 +0100)]
Separated psppire_selector_set_subjects into two individual functions

14 years agoUpdated the Dutch translation at the translator's request fc11-i386-build36 fc11-x64-build33 lenny-x64-build57 sid-i386-build105
John Darrington [Mon, 16 Nov 2009 21:23:54 +0000 (22:23 +0100)]
Updated the Dutch translation at the translator's request

14 years agoPsppireDictView: Change "dictionary" property to "model".
John Darrington [Mon, 16 Nov 2009 18:29:25 +0000 (19:29 +0100)]
PsppireDictView: Change "dictionary" property to "model".

Previously, PsppireDictView, which derives from GtkTreeView,
had a property "dictionary", and a trap on the GtkTreeView's
"model" property.  This change removes the trap and changes the
"dictionary" property to an override of the "model" property.

14 years agoPsppireSelector: new properties: "source-widget" and "dest-widget".
John Darrington [Sun, 15 Nov 2009 21:30:18 +0000 (22:30 +0100)]
PsppireSelector: new properties: "source-widget" and "dest-widget".

Previously, a function psppire_selector_set_subjects was used to
set the destination and source widgets of a PsppireSelector.  This
change adds two new properties, and sets them in the GtkBuilder
definitions instead of in the C code.

14 years agoMove definition of sort-cases-dialog to a seperate file. fc11-i386-build35 fc11-x64-build32 lenny-x64-build56 sid-i386-build104
John Darrington [Sun, 15 Nov 2009 14:40:29 +0000 (15:40 +0100)]
Move definition of sort-cases-dialog to a seperate file.

Removed the sort-cases-dialog definition from psppire.ui
into a new file sort.ui

14 years agoFix some minor problems with the reliability dialog fc11-i386-build34 fc11-x64-build31 lenny-x64-build55 sid-i386-build103
John Darrington [Sat, 14 Nov 2009 19:24:56 +0000 (20:24 +0100)]
Fix some minor problems with the reliability dialog

14 years agoProperly display ampersand characters in dictionary view widgets fc11-i386-build33 fc11-x64-build30 lenny-x64-build54 sid-i386-build102
John Darrington [Fri, 13 Nov 2009 20:55:07 +0000 (21:55 +0100)]
Properly display ampersand characters in dictionary view widgets

14 years agoUse significance_of_correlation function in t-test. fc11-i386-build32 fc11-x64-build29 lenny-x64-build53 sid-i386-build101
John Darrington [Sun, 8 Nov 2009 17:17:04 +0000 (18:17 +0100)]
Use significance_of_correlation function in t-test.

Use the new function in src/math/correlation.c instead
of doing it ourselves.

14 years agoNew module src/math/correlation
John Darrington [Sun, 8 Nov 2009 15:33:52 +0000 (16:33 +0100)]
New module src/math/correlation

Created a new module to hold some common routines pertaining
to correlation coefficients.

14 years agoRemove inappropriate call to gtk_window_set_keep_above fc11-i386-build31 fc11-x64-build28 lenny-x64-build52 sid-i386-build100
John Darrington [Sat, 7 Nov 2009 07:39:07 +0000 (08:39 +0100)]
Remove inappropriate call to gtk_window_set_keep_above

Thanks to Hugo Florentino for reporting this problem.

14 years agoWrap operations which index into reverse_variable_map fc11-i386-build30 fc11-x64-build27 lenny-x64-build51 sid-i386-build99
John Darrington [Sat, 31 Oct 2009 08:02:32 +0000 (09:02 +0100)]
Wrap operations which index into reverse_variable_map

New private function reverse_variable_lookup.  This
function wraps operations which index into the array,
and includes checks to prevent indexing outside the
bounds of the array.

14 years agoDrop first category of each variable from covariance matrix.
John Darrington [Sat, 31 Oct 2009 07:42:25 +0000 (08:42 +0100)]
Drop first category of each variable from covariance matrix.

Apparently it's not appropriate for the covariance matrix to
have a row/column for every categorical value.  One value per
categorical variable should be excluded.  This change drops
the first category encountered.

14 years agoRemove unused function categoricals_index
John Darrington [Sat, 31 Oct 2009 07:22:00 +0000 (08:22 +0100)]
Remove unused function categoricals_index

14 years agoPopulate the moment matrices with the categorical entries
John Darrington [Sat, 31 Oct 2009 07:10:35 +0000 (08:10 +0100)]
Populate the moment matrices with the categorical entries

14 years agoKeep track of the number of variables involved in the categoricals.
John Darrington [Sat, 31 Oct 2009 07:04:32 +0000 (08:04 +0100)]
Keep track of the number of variables involved in the categoricals.

Added a counter for the number of variables which actually contribute
to categories.  Due to the possibility of missing values, this may
not be equal to the number of variables passed to the contructor.

14 years agoDon't crash if all categorical variables are empty
John Darrington [Sat, 31 Oct 2009 06:04:25 +0000 (07:04 +0100)]
Don't crash if all categorical variables are empty

14 years agoMerge "master" into "output". fc11-i386-build29 fc11-x64-build26 lenny-x64-build50 sid-i386-build98
Ben Pfaff [Sat, 24 Oct 2009 15:42:33 +0000 (08:42 -0700)]
Merge "master" into "output".

14 years agoNew functions to return the sum and weights associated with categorical variables fc11-i386-build28 fc11-x64-build25 lenny-x64-build49 sid-i386-build97
John Darrington [Sat, 24 Oct 2009 14:20:10 +0000 (16:20 +0200)]
New functions to return the sum and weights associated with categorical variables

14 years agoDon't update categorical variables whose values are missing
John Darrington [Sat, 24 Oct 2009 14:14:59 +0000 (16:14 +0200)]
Don't update categorical variables whose values are missing

14 years agoRemove some unnecessary #include directives
John Darrington [Sat, 24 Oct 2009 08:27:54 +0000 (10:27 +0200)]
Remove some unnecessary #include directives

14 years agoCall categoricals_done at start of second pass. sid-i386-build96
John Darrington [Sat, 24 Oct 2009 07:26:21 +0000 (09:26 +0200)]
Call categoricals_done at start of second pass.

14 years agoNew functions is_missing and get_val
John Darrington [Sat, 24 Oct 2009 07:02:54 +0000 (09:02 +0200)]
New functions is_missing and get_val

Abstract the actions of obtaining the numeric value of a variable
and its missing status, so that it can be more easily applied to
categorical variables and linear variables alike.

14 years agoUse cov->dim instead of cov->n_vars where appropriate
John Darrington [Sat, 24 Oct 2009 06:35:43 +0000 (08:35 +0200)]
Use cov->dim instead of cov->n_vars where appropriate

14 years agoDestroy the categorical variables when the covariance matrix is destroyed
John Darrington [Sat, 24 Oct 2009 06:32:48 +0000 (08:32 +0200)]
Destroy the categorical variables when the covariance matrix is destroyed

14 years agoMove categorical variable into the var_params struct
John Darrington [Sat, 24 Oct 2009 06:29:45 +0000 (08:29 +0200)]
Move categorical variable into the var_params struct

14 years agoResize the moment matrices after the first pass
John Darrington [Fri, 23 Oct 2009 17:16:31 +0000 (19:16 +0200)]
Resize the moment matrices after the first pass

14 years agoAllow dump function to work with numeric variables
John Darrington [Tue, 20 Oct 2009 17:27:54 +0000 (19:27 +0200)]
Allow dump function to work with numeric variables

14 years agoRework glm.q to use new covariance routines fc11-i386-build27 fc11-x64-build24 lenny-x64-build48 sid-i386-build95
Jason H Stover [Fri, 23 Oct 2009 20:37:11 +0000 (16:37 -0400)]
Rework glm.q to use new covariance routines

14 years agoFix order of pool_calloc arguments. fc11-i386-build26 fc11-x64-build22 lenny-x64-build47 sid-i386-build94
John Darrington [Sun, 18 Oct 2009 19:57:42 +0000 (21:57 +0200)]
Fix order of pool_calloc arguments.

The second argument is the number of elements, the third is the size.  If this
is inadvertently reversed, then it fails when the number of elements is zero.

14 years agoAdd reverse map entries to categoricals.
John Darrington [Sun, 18 Oct 2009 19:46:46 +0000 (21:46 +0200)]
Add reverse map entries to categoricals.

Allow categorical values and variables to be efficiently
indexed by the non-zero binary vector entry to which they
map.

14 years agoNew module src/math/categoricals .
John Darrington [Sat, 17 Oct 2009 17:26:04 +0000 (19:26 +0200)]
New module src/math/categoricals .

Created a new object to keep track of categorical variables, and their
values.   This is similar to src/data/categorys.c but is created on
demand, and doesn't use any global state.

14 years agoAdd a two pass algorithm to calculate covariance matrices. fc11-i386-build23 lenny-x64-build44 sid-i386-build91
John Darrington [Sat, 17 Oct 2009 09:12:56 +0000 (11:12 +0200)]
Add a two pass algorithm to calculate covariance matrices.

The single pass algorithm, although faster, is numerically unstable.
Furthermore, at can't reasonably be achieved when categorical variables
are involved.    This change implements a two pass algorithm and allows
the caller to choose which algorithm (s)he prefers.

14 years agosys-file-reader: Tolerate nonsensical opcodes in compressed data. fc11-i386-build22 fc11-x64-build21 lenny-x64-build43 sid-i386-build90
Ben Pfaff [Thu, 15 Oct 2009 04:20:44 +0000 (21:20 -0700)]
sys-file-reader: Tolerate nonsensical opcodes in compressed data.

Compressed data in .sav files uses a set of 256 opcodes, some of which make
sense only for numeric data and others of which only make sense for string
data.  However, Jereme Thomas <jereme.thomas@gmail.com> has provided one
file, written by SPSS 14, that uses an opcode that seems to makes sense
only for numeric data in a string field.  So this commit adds support for
these opcodes, although it still warns about the ones other than the exact
one found in the file provided by Jereme.

14 years agoEnhance dissect-sysfile utility to print compressed data also. fc11-i386-build21 fc11-x64-build20 lenny-x64-build42 sid-i386-build89
Ben Pfaff [Thu, 15 Oct 2009 03:41:25 +0000 (20:41 -0700)]
Enhance dissect-sysfile utility to print compressed data also.

This proved useful in investigating a report that PSPP failed to read a
.sav file that contained compressed data, so it seems worthwhile to include
it in the PSPP tree.