pspp-builds.git
14 years agoFix compiler warning in test program
John Darrington [Sun, 12 Jul 2009 15:44:36 +0000 (23:44 +0800)]
Fix compiler warning in test program

14 years agoUpdated the developers' manual to reflect the new situation
John Darrington [Sun, 12 Jul 2009 14:50:11 +0000 (22:50 +0800)]
Updated the developers' manual to reflect the new situation

14 years agoAdded a dict parameter to data_in and dealt with the consequences.
John Darrington [Sun, 12 Jul 2009 14:13:44 +0000 (22:13 +0800)]
Added a dict parameter to data_in and dealt with the consequences.

The data_in function now takes a pointer to a struct dictionary,
which must be the dictionary with which the output value is
associated.  Data_in now ensures that the data of string values
is converted to the dictionary's encoding if necessary.

14 years agoReturn 0.0 for mean of a categorical variable. Fixes bug mentioned in bug report...
Jason Stover [Sat, 11 Jul 2009 19:45:49 +0000 (15:45 -0400)]
Return 0.0 for mean of a categorical variable. Fixes bug mentioned in bug report 26861.

14 years agoUse Harry Thijssen's real name instead of his nick "unknown-1", at his request.
Ben Pfaff [Fri, 10 Jul 2009 03:13:16 +0000 (20:13 -0700)]
Use Harry Thijssen's real name instead of his nick "unknown-1", at his request.

14 years agoRelease PSPP 0.6.2-pre4. v0.6.2-pre4
Ben Pfaff [Thu, 9 Jul 2009 03:21:01 +0000 (20:21 -0700)]
Release PSPP 0.6.2-pre4.

14 years agoUpdate to latest nl.po.
Ben Pfaff [Thu, 9 Jul 2009 03:17:28 +0000 (20:17 -0700)]
Update to latest nl.po.

Thanks to unknown-1 and the coordinators at translationproject.org.

14 years agogui: Fix brown-paper-bag bug in output file name selection.
Ben Pfaff [Thu, 9 Jul 2009 03:12:11 +0000 (20:12 -0700)]
gui: Fix brown-paper-bag bug in output file name selection.

Thanks to michel@cecaps.ufmg.br for reporting the bug and the fix.

14 years agoRemove recoding in data_store.
John Darrington [Wed, 8 Jul 2009 19:05:24 +0000 (03:05 +0800)]
Remove recoding in data_store.

It's no longer appropriate to perform recoding in the gui.
Instead, this is expected to be done in the backend.

14 years agoCROSSTABS: Handle long string variables without crashing (bug #26131).
Ben Pfaff [Wed, 8 Jul 2009 02:44:20 +0000 (19:44 -0700)]
CROSSTABS: Handle long string variables without crashing (bug #26131).

14 years agoChange union value type to contain uint8_t types instead of char.
John Darrington [Tue, 7 Jul 2009 16:50:57 +0000 (00:50 +0800)]
Change union value type to contain uint8_t types instead of char.

Make the members of the union value type in src/data/value.h be
uint8_t instead of char.  This is more logical since the contents
of values cannot be considered "strings" until they have been
formatted.  The unformatted values are merely arrays of bytes.

This has the added advantage of provoking compiler warnings when
a char * type is being implicitly cast to a uint8_t * or vici-versa.
When such a warning is encountered, is probably means that the
data needs to be re-encoded using recode_string.

14 years agoRemove erroneously commited diagnostic statement
John Darrington [Tue, 7 Jul 2009 16:34:16 +0000 (00:34 +0800)]
Remove erroneously commited diagnostic statement

14 years agoUse default encoding when reading system files if no encoding is given in file.
John Darrington [Tue, 7 Jul 2009 12:33:03 +0000 (20:33 +0800)]
Use default encoding when reading system files if no encoding is given in file.

14 years agoFix problem running the perl module
John Darrington [Tue, 7 Jul 2009 11:24:40 +0000 (19:24 +0800)]
Fix problem running the perl module

14 years agoReplace legacy_recode with recode_string.
John Darrington [Tue, 7 Jul 2009 09:35:21 +0000 (17:35 +0800)]
Replace legacy_recode with recode_string.

Iconv seems to do a good job of converting between
ascii and ebcdic, so use the recode_string function
instead of our own conversion routines.

14 years agoFix compile warnings
John Darrington [Tue, 7 Jul 2009 05:19:18 +0000 (13:19 +0800)]
Fix compile warnings

14 years agoFix bug in value labels dialog box
John Darrington [Tue, 7 Jul 2009 04:52:45 +0000 (12:52 +0800)]
Fix bug in value labels dialog box

14 years agoAdd dictionary argument to tab_value.
John Darrington [Tue, 7 Jul 2009 04:19:17 +0000 (12:19 +0800)]
Add dictionary argument to tab_value.

In order to properly display values, tab_value needs
to know the dictionary from whence the value comes.
This is necessary so that string values can be properly
decoded.

This change adds this argument to tab_value and updates
all callers.

14 years agoRecode strings when writing system files.
John Darrington [Mon, 6 Jul 2009 19:39:36 +0000 (03:39 +0800)]
Recode strings when writing system files.

The long variable names, variable labels and value labels are
now converted from utf8 to the dictionary encoding when
writing a system file.

14 years agoFix crash when opening empty dataset
John Darrington [Mon, 6 Jul 2009 17:38:21 +0000 (01:38 +0800)]
Fix crash when opening empty dataset

14 years agoConvert to utf8 in data_out function.
John Darrington [Mon, 6 Jul 2009 16:44:27 +0000 (00:44 +0800)]
Convert to utf8 in data_out function.

Previously, the output value of data_out was of arbitrary encoding.
This change attempts to ensure that it is always utf8.

14 years agodata_out function to dynamically allocate return value.
John Darrington [Mon, 6 Jul 2009 11:51:34 +0000 (19:51 +0800)]
data_out function to dynamically allocate return value.

Preparation for i18n of values.  Instead of asking the
caller to prepare the buffer for output, data_out now
dynamically allocates the output value, and expects the
caller to free it.  This is necessary since for utf8
strings, the caller cannot reasonably know the length of
the required output buffer.  It also simplifies some uses
of data_out.

14 years agooutput: Make box-whisker plots work again.
Ben Pfaff [Sat, 4 Jul 2009 05:33:01 +0000 (22:33 -0700)]
output: Make box-whisker plots work again.

14 years agoChange enum legacy_encoding to const char *.
John Darrington [Sun, 5 Jul 2009 12:45:12 +0000 (20:45 +0800)]
Change enum legacy_encoding to const char *.

Preparation for i18n of union values.  Remove the
legacy_encoding enum and substitute it with a const
char *.  This makes it easier to integrate recoding
of union values in the data parsing stage.

14 years agoStore variable names, labels and value labels as UTF8.
John Darrington [Sun, 5 Jul 2009 09:33:29 +0000 (17:33 +0800)]
Store variable names, labels and value labels as UTF8.

This change converts long variable names, variable labels
and value labels to utf8 encoding when system files are
loaded.  It is therefore no longer necessary (nor correct)
to convert them when displaying.

14 years agoRelease PSPP 0.6.2-pre3. v0.6.2-pre3
Ben Pfaff [Fri, 3 Jul 2009 18:43:09 +0000 (11:43 -0700)]
Release PSPP 0.6.2-pre3.

14 years agoAdd Dutch translation.
Ben Pfaff [Fri, 3 Jul 2009 18:40:27 +0000 (11:40 -0700)]
Add Dutch translation.

Thanks to unknown-1 and the coordinators at translationproject.org.

14 years agoFix segfault drawing pie charts with old versions of libplot.
Ben Pfaff [Fri, 3 Jul 2009 18:34:26 +0000 (11:34 -0700)]
Fix segfault drawing pie charts with old versions of libplot.

If chart_create returned null, we dereferenced a null pointer just below.
Avoid doing this.

Also add similar fixes to other code that calls chart_create.  It may not
be necessary in every case.

Reported by Jason Stover.

14 years agoRelease PSPP 0.6.2-pre2. v0.6.2-pre2
Ben Pfaff [Fri, 3 Jul 2009 18:03:27 +0000 (11:03 -0700)]
Release PSPP 0.6.2-pre2.

14 years agoCorrect default_output_path function on Windows.
John Darrington [Wed, 13 May 2009 22:48:17 +0000 (06:48 +0800)]
Correct default_output_path function on Windows.

14 years agoEnsure that windows opens the right file for output.
John Darrington [Wed, 13 May 2009 22:54:56 +0000 (06:54 +0800)]
Ensure that windows opens the right file for output.

Thanks to Michel Boaventura for reporting this problem.
Fixes bug #26542

14 years agoRelocate the locale directory.
Ben Pfaff [Fri, 3 Jul 2009 17:48:26 +0000 (10:48 -0700)]
Relocate the locale directory.

Based on commit 31e674bbb in master, but stable refers to locale_dir from
different files.

Thanks to Michel Boaventura for reporting the problem.

14 years agooutput: Refactor implementation of charts.
Ben Pfaff [Thu, 2 Jul 2009 23:59:08 +0000 (16:59 -0700)]
output: Refactor implementation of charts.

This commit addresses a weakness of the charts implementation in PSPP, in
that charts can only be sent to a single output device.  This is because
the chart code calls into a single output driver to obtain a libplot
plotting context and then passes that back into the calling code, which
draws on it and passes it back to the output driver.  This commit refactors
the code so that, instead, a chart is an ADT that is reponsible for knowing
how to draw itself on a plotting device.  Then the function for outputting
a chart applies this function to each output device.

This is more complicated than necessary: we could just loop over the set of
output devices and draw a chart on each one in turn.  But this level of
complication is being introduced now so that later we can keep around
charts in memory as long as necessary for the GUI output engine to export
them on user demand.

This commit introduces a couple of regressions:

* libplot is now required, not optional.

* Box-whisker plots are disabled.

This regressions will be fixed by later commits.

14 years agoRelease PSPP 0.6.2 prerelease 1. v0.6.2-pre1
Ben Pfaff [Thu, 2 Jul 2009 17:17:13 +0000 (10:17 -0700)]
Release PSPP 0.6.2 prerelease 1.

14 years agochart: Fix format string issues in draw_tick callers.
Ben Pfaff [Thu, 2 Jul 2009 03:56:17 +0000 (20:56 -0700)]
chart: Fix format string issues in draw_tick callers.

The 'label' argument to draw_tick is used as a printf-type format string,
so callers must pass "%s" to safely use an arbitrary string as a label.

Also, hist_draw_bar was doing its own snprintf, but this commit changes it
to take advantage of that provided by draw_tick.

14 years agochart: Fix format string issues in chart_write_title callers.
Ben Pfaff [Thu, 2 Jul 2009 03:50:33 +0000 (20:50 -0700)]
chart: Fix format string issues in chart_write_title callers.

The 'title' argument to chart_write_title is used as a printf-type format
string, so callers must pass "%s" to safely use an arbitrary string as a
title.

14 years agochart: Fix format string issues in draw_tick callers.
Ben Pfaff [Thu, 2 Jul 2009 03:56:17 +0000 (20:56 -0700)]
chart: Fix format string issues in draw_tick callers.

The 'label' argument to draw_tick is used as a printf-type format string,
so callers must pass "%s" to safely use an arbitrary string as a label.

Also, hist_draw_bar was doing its own snprintf, but this commit changes it
to take advantage of that provided by draw_tick.

14 years agochart: Fix format string issues in chart_write_title callers.
Ben Pfaff [Thu, 2 Jul 2009 03:50:33 +0000 (20:50 -0700)]
chart: Fix format string issues in chart_write_title callers.

The 'title' argument to chart_write_title is used as a printf-type format
string, so callers must pass "%s" to safely use an arbitrary string as a
title.

14 years agopiechart: Change 'angle' variable from static to automatic.
Ben Pfaff [Thu, 2 Jul 2009 02:29:49 +0000 (19:29 -0700)]
piechart: Change 'angle' variable from static to automatic.

14 years agopiechart: Fix spelling of "magnitude".
Ben Pfaff [Wed, 1 Jul 2009 23:42:44 +0000 (16:42 -0700)]
piechart: Fix spelling of "magnitude".

14 years agopiechart: Use definition of M_PI from GSL.
Ben Pfaff [Wed, 1 Jul 2009 23:39:52 +0000 (16:39 -0700)]
piechart: Use definition of M_PI from GSL.

The GSL header <gsl/gsl_math.h> makes sure that the standard BSD
mathematical constants are defined, so we don't have to do it ourselves.

14 years agooutput: Get rid of 'prc' member of struct outp_driver.
Ben Pfaff [Wed, 1 Jul 2009 22:55:35 +0000 (15:55 -0700)]
output: Get rid of 'prc' member of struct outp_driver.

Not only is having a per-procedure member in struct outp_driver a layering
violation, it wasn't very useful, so this commit gets rid of it.

14 years agoLIST: Don't use outp_driver 'prc' member any longer.
Ben Pfaff [Wed, 1 Jul 2009 22:54:50 +0000 (15:54 -0700)]
LIST: Don't use outp_driver 'prc' member any longer.

The LIST procedure is the only one that uses the 'prc' member of struct
outp_driver.  This commit gets rid of that use, so that 'prc' can be
removed, as part of a larger output subsystem cleanup.

14 years agooutput: Get rid of histogram_plot_n function.
Ben Pfaff [Wed, 1 Jul 2009 22:53:55 +0000 (15:53 -0700)]
output: Get rid of histogram_plot_n function.

For some reason we have two functions to plot histograms, one of which is
marked "deprecated" and the other of which is a trivial wrapper.  It's
easy, however, to get rid of one of them and make the caller in charge of
doing what the wrapper does, especially since the wrapper had only a single
caller.  That is what this commit does.

14 years agooutput: Fix segfault for writing output outside a command invocation.
Ben Pfaff [Wed, 1 Jul 2009 22:53:44 +0000 (15:53 -0700)]
output: Fix segfault for writing output outside a command invocation.

Running "make check" made this problem obvious, but it hadn't shown up in
my in-GUI testing.

14 years agooutput: Avoid functions added in GTK 2.14 in GUI output code.
Ben Pfaff [Mon, 29 Jun 2009 04:26:59 +0000 (21:26 -0700)]
output: Avoid functions added in GTK 2.14 in GUI output code.

14 years agooutput: Reduce Cairo minimum version to 1.5.
Ben Pfaff [Mon, 29 Jun 2009 03:22:42 +0000 (20:22 -0700)]
output: Reduce Cairo minimum version to 1.5.

Suggested by John Darrington.

14 years agooutput: Make double-clicking in GUI output overview pane scroll to table.
Ben Pfaff [Sat, 27 Jun 2009 05:22:54 +0000 (22:22 -0700)]
output: Make double-clicking in GUI output overview pane scroll to table.

14 years agooutput: Give the overview pane in the GUI output a reasonable initial width.
Ben Pfaff [Sat, 27 Jun 2009 04:58:00 +0000 (21:58 -0700)]
output: Give the overview pane in the GUI output a reasonable initial width.

14 years agooutput: Improve title display in overview pane of GUI output.
Ben Pfaff [Sat, 27 Jun 2009 04:37:36 +0000 (21:37 -0700)]
output: Improve title display in overview pane of GUI output.

14 years agoFix bugs when input data is repeated
John Darrington [Thu, 25 Jun 2009 03:08:09 +0000 (11:08 +0800)]
Fix bugs when input data is repeated

14 years agoAdded second ROC test
John Darrington [Wed, 24 Jun 2009 08:47:38 +0000 (16:47 +0800)]
Added second ROC test

14 years agooutput: Add overview pane to GUI output window.
Ben Pfaff [Wed, 24 Jun 2009 06:10:00 +0000 (23:10 -0700)]
output: Add overview pane to GUI output window.

14 years agooutput: Include command names in titles in GUI output.
Ben Pfaff [Tue, 23 Jun 2009 06:01:03 +0000 (23:01 -0700)]
output: Include command names in titles in GUI output.

The command name displayed by the output engine was the current command
name.  The GUI output was never displayed during the actual execution of a
command, so GUI titles never included a command name.

This commit puts the command name into the struct passed into the output
engine, so that it gets saved and displayed.

14 years agocrosstabs: Fix free of bad pointer and use-after-free error in cleanup.
Ben Pfaff [Mon, 22 Jun 2009 04:11:25 +0000 (21:11 -0700)]
crosstabs: Fix free of bad pointer and use-after-free error in cleanup.

In free_proc, 'pt' points within an array that is dynamically
allocated, not to a data structure that is dynamically allocated, so
we must not try to free it on each iteration.  Instead, free the
dynamic array itself (proc->pivots) only once.

14 years agooutput: Use "base" color for background in GUI output window.
Ben Pfaff [Sun, 21 Jun 2009 04:30:57 +0000 (21:30 -0700)]
output: Use "base" color for background in GUI output window.

The "base" color in GtkStyle is used as the background color for GTK+
widgets that display editable text, e.g. GtkEntry.  That's what we're
aiming for, eventually, with the PSPP GUI output, and the default
white "base" color looks better than the default gray background
color, so use it.

14 years agooutput: Use gtk_widget_show_all instead of gtk_widget_show_now.
Ben Pfaff [Sun, 21 Jun 2009 03:42:09 +0000 (20:42 -0700)]
output: Use gtk_widget_show_all instead of gtk_widget_show_now.

The gtk_widget_show_now function is not supposed to used lightly,
according to GTK+ documentation.  We don't really need it here, so
avoid it.

14 years agooutput: Make GUI output window scrollable.
Ben Pfaff [Sun, 21 Jun 2009 03:29:08 +0000 (20:29 -0700)]
output: Make GUI output window scrollable.

14 years agooutput: Implement very rudimentary graphical GUI output for PSPPIRE.
Ben Pfaff [Wed, 17 Jun 2009 05:38:52 +0000 (22:38 -0700)]
output: Implement very rudimentary graphical GUI output for PSPPIRE.

It's quick and dirty and lacks many important features (such as
scrolling, and not leaking memory), but it does look a lot better than
a text editor window.

14 years agooutput: Make tables reference-counted.
Ben Pfaff [Sat, 20 Jun 2009 05:52:40 +0000 (22:52 -0700)]
output: Make tables reference-counted.

Adding a reference count to tab_table allows output drivers to retain
a copy of a table even after the main output engine is done.  This
will be useful for the GUI output driver.

14 years agooutput: Improve warnings about negative table dimensions.
Ben Pfaff [Sat, 20 Jun 2009 05:51:31 +0000 (22:51 -0700)]
output: Improve warnings about negative table dimensions.

14 years agooutput: Make outp_parse_options slightly more general-purpose.
Ben Pfaff [Sat, 20 Jun 2009 05:57:16 +0000 (22:57 -0700)]
output: Make outp_parse_options slightly more general-purpose.

This function can be a little more flexible in the interface it offers
its callers by letting them provide general auxiliary data instead of
having to provide a struct outp_driver *.

14 years agoMake the UTF-8 graphic devices avoid overstriking by default.
Ben Pfaff [Sat, 20 Jun 2009 02:44:14 +0000 (19:44 -0700)]
Make the UTF-8 graphic devices avoid overstriking by default.

The UTF-8 graphic devices introduced in the previous commit use
backspaces and overstriking to indicate bold, but most users probably
won't appreciate that, since it makes it harder to work with the
output files in many text editors.  Thus, disable this behavior.

Thanks to John Darrington for pointing out the issue.

14 years agoAdd Unicode (UTF-8) line-drawing support to device configuration.
Ben Pfaff [Thu, 18 Jun 2009 05:31:03 +0000 (22:31 -0700)]
Add Unicode (UTF-8) line-drawing support to device configuration.

Thanks to jwshipley@jwshipley.karoo.co.uk for the suggestion.

14 years agosys-file-reader: Don't warn if compression bias field is 0.
Ben Pfaff [Thu, 18 Jun 2009 04:24:38 +0000 (21:24 -0700)]
sys-file-reader: Don't warn if compression bias field is 0.

Some software writes a value of 0 to the compression bias field.  We
expect that this field has a value of 100 and warn if we see any other
value, but there is no real need to do so (because it is very likely
that we can read the file correctly in any case).  So suppress the
warning if we see a value of 0 here, because it bothers users.

Thanks to Tony Reardon <tony@sir.com.au> for reporting this
unnecessary warning.

14 years agopor-file-reader: Tolerate short lines when detecting portable files.
Ben Pfaff [Thu, 18 Jun 2009 04:11:10 +0000 (21:11 -0700)]
por-file-reader: Tolerate short lines when detecting portable files.

When the portable file reader reads a file, it assumes that a line
shorter than 80 bytes should actually be padded out on the right with
spaces, because this is a fairly common problem in practice, perhaps
due to text editors or other software that drops spaces at the end of
a line.

However, pfm_detect, the function that is supposed to detect whether
a given file is an SPSS portable file, did not apply this heuristic to
the data that it read at the beginning of the file, and thus files in
which the first few lines were truncated this way were not detected
properly as portable files.

This commit fixes the problem by making pfm_detect a little bit
smarter.  It would probably be better to actually unify the
file-reading logic, instead of implementing it in two separate places,
but this appears to work adequately too.

Thanks to Tony Reardon <tony@sir.com.au> for reporting the problem
and supplying a file that demonstrated it.

14 years agooutput: Make allocating and freeing drivers independent of configuration.
Ben Pfaff [Wed, 17 Jun 2009 05:34:16 +0000 (22:34 -0700)]
output: Make allocating and freeing drivers independent of configuration.

Until now, the output subsystem has taken responsibility for
allocating, freeing, registering, and unregistering output drivers.
This is usually what we want it to do, but PSPPIRE will soon want to
register an output driver of its own, independent of the main driver
configuration mechanism.  This commit refactors the output driver
subsystem slightly to make this possible.

14 years agoRenamed interaction_variable_get_var to interaction_get_variable.
Jason H Stover [Tue, 16 Jun 2009 16:20:57 +0000 (12:20 -0400)]
Renamed interaction_variable_get_var to interaction_get_variable.

Renamed interaction_variable_get_member to interaction_get_member.

Split update_hash_entry into update_hash_entry and
update_hash_entry_intr for interactions.

inner_intr_loop: New function.

covariance_accumulate_pairwise: Loop separately over variables, then interactions.

interaction_variable_create: Make interactions type alpha when
appropriate.

interaction_value_create: Use value_resize to avoid copying more data than
necessary into new interaction_value.

14 years agocairo: Use default Cairo scale factor.
Ben Pfaff [Tue, 16 Jun 2009 05:53:39 +0000 (22:53 -0700)]
cairo: Use default Cairo scale factor.

By not using cairo_scale() at all, the rest of the code, especially
the Pango-related code, seems to make more sense.

14 years agooutput: Make global variables less global.
Ben Pfaff [Tue, 16 Jun 2009 04:40:06 +0000 (21:40 -0700)]
output: Make global variables less global.

table_num and subtable_num were previously global variables that were
referred to from multiple files.  Now that we want to make tables
renderable from arbitrary contexts, though, we need to save the table
number with the table, so this change implements that.

14 years agoAdd new functions to define subcase orderings.
John Darrington [Mon, 15 Jun 2009 23:27:31 +0000 (07:27 +0800)]
Add new functions to define subcase orderings.

Allow subcases to be defined from a index and width,
rather from a variable.  This avoids much of the
need for var_create_internal.

14 years agosparse-xarray: Add missing #include <limits.h>.
Ben Pfaff [Mon, 15 Jun 2009 20:52:17 +0000 (13:52 -0700)]
sparse-xarray: Add missing #include <limits.h>.

Thanks to michel <michel@cecaps.ufmg.br> for reporting the problem.

14 years agosparse-xarray: Add missing #include <limits.h>.
Ben Pfaff [Mon, 15 Jun 2009 20:52:17 +0000 (13:52 -0700)]
sparse-xarray: Add missing #include <limits.h>.

Thanks to michel <michel@cecaps.ufmg.br> for reporting the problem.

14 years agooutput: Make table dimension functions work in arbitrary contexts.
Ben Pfaff [Mon, 15 Jun 2009 04:50:46 +0000 (21:50 -0700)]
output: Make table dimension functions work in arbitrary contexts.

Until now the function passed to tab_dim has only been called at the
time that the table is passed to tab_submit.  But in upcoming commits
the table will be kept around and rendered possibly much later (by the
GUI), so the function to tab_dim has to be sure to only use data that
will exist at that time.  Thus, this commit makes it possible to free
the auxiliary data passed to that function, so that in the few cases
where it needs to keep around extra data, it can do so without leaking
memory.  At the same time, convert the few functions that do need this
feature to use it.

14 years agoAllow variables created by var_create_internal to have any width.
Ben Pfaff [Mon, 15 Jun 2009 03:09:42 +0000 (20:09 -0700)]
Allow variables created by var_create_internal to have any width.

Until now, var_create_internal has always created a numeric variable.
In the long run we wish to phase out the use of internal variables
entirely, but this change should help Jason get some work done in the
short term.

14 years agoFix compile warning
John Darrington [Sun, 14 Jun 2009 09:27:32 +0000 (17:27 +0800)]
Fix compile warning

14 years agoAdded code to plot the ROC curve
John Darrington [Sat, 13 Jun 2009 05:29:25 +0000 (13:29 +0800)]
Added code to plot the ROC curve

14 years agooutput: Use "struct string" in tabi_title in place of fixed-size buffer.
Ben Pfaff [Sat, 13 Jun 2009 05:12:13 +0000 (22:12 -0700)]
output: Use "struct string" in tabi_title in place of fixed-size buffer.

This ensures that extra-long titles provided by the user do not overflow
the stack.

14 years agoGet rid of most global variables in outputting tables.
Ben Pfaff [Thu, 11 Jun 2009 05:49:47 +0000 (22:49 -0700)]
Get rid of most global variables in outputting tables.

14 years agocairo: Fix values of prop_em_width, fixed_width.
Ben Pfaff [Fri, 12 Jun 2009 04:54:15 +0000 (21:54 -0700)]
cairo: Fix values of prop_em_width, fixed_width.

For some reason prop_em_width and fixed_width were getting very small
values, e.g. 5 and 7, when they were being pulled from the font metrics.
These values should be more like 1024 times larger and  I can't figure
why they aren't.  But this works around the problem for now.

14 years agooutput: Get rid of unused SOM_ROW, SOM_COLUMN enums.
Ben Pfaff [Wed, 10 Jun 2009 03:00:15 +0000 (20:00 -0700)]
output: Get rid of unused SOM_ROW, SOM_COLUMN enums.

14 years agooutput: Get rid of unused members of struct som_table_class.
Ben Pfaff [Wed, 10 Jun 2009 02:48:50 +0000 (19:48 -0700)]
output: Get rid of unused members of struct som_table_class.

I planned to use these at one point, but no longer do.

14 years agooutput: Remove static variables from manager code.
Ben Pfaff [Tue, 9 Jun 2009 05:27:15 +0000 (22:27 -0700)]
output: Remove static variables from manager code.

14 years agotable: Replace macros by inline functions, to improve type safety.
Ben Pfaff [Tue, 9 Jun 2009 05:19:33 +0000 (22:19 -0700)]
table: Replace macros by inline functions, to improve type safety.

14 years agoFix type mismatch between value_hash prototype and definition.
Ben Pfaff [Fri, 12 Jun 2009 03:25:49 +0000 (20:25 -0700)]
Fix type mismatch between value_hash prototype and definition.

Thanks to michel <michel@cecaps.ufmg.br> for pointing out the problem.

14 years agoFix type mismatch between value_hash prototype and definition.
Ben Pfaff [Fri, 12 Jun 2009 03:25:49 +0000 (20:25 -0700)]
Fix type mismatch between value_hash prototype and definition.

Thanks to michel <michel@cecaps.ufmg.br> for pointing out the problem.

14 years agoDrop call to deleted function value_cnt_from_width (from debug-only code).
Ben Pfaff [Fri, 12 Jun 2009 03:11:55 +0000 (20:11 -0700)]
Drop call to deleted function value_cnt_from_width (from debug-only code).

Thanks to Jason for pointing out the problem.

14 years agoFixed crash caused by regressing with categorical variables
Jason H Stover [Thu, 11 Jun 2009 15:31:40 +0000 (11:31 -0400)]
Fixed crash caused by regressing with categorical variables

14 years agoAdded code to generate the ROC cutpoint tables.
John Darrington [Thu, 11 Jun 2009 06:22:22 +0000 (14:22 +0800)]
Added code to generate the ROC cutpoint tables.

14 years agoAdd check that input to casereader_create_distinct are sorted
John Darrington [Thu, 11 Jun 2009 04:57:17 +0000 (12:57 +0800)]
Add check that input to casereader_create_distinct are sorted

14 years agoFix bug when positive and negative groups are of different lengths
John Darrington [Wed, 10 Jun 2009 13:50:48 +0000 (21:50 +0800)]
Fix bug when positive and negative groups are of different lengths

14 years agoAdd framework for ROC summary table
John Darrington [Wed, 10 Jun 2009 13:49:39 +0000 (21:49 +0800)]
Add framework for ROC summary table

14 years agoUse the requested method for calculating the ROC AUC standard error
John Darrington [Wed, 10 Jun 2009 13:25:50 +0000 (21:25 +0800)]
Use the requested method for calculating the ROC AUC standard error

14 years agoAdded basic calculation and display of area under the curve
John Darrington [Wed, 10 Jun 2009 13:14:01 +0000 (21:14 +0800)]
Added basic calculation and display of area under the curve

14 years agoAdded test for the ROC command
John Darrington [Wed, 10 Jun 2009 13:11:32 +0000 (21:11 +0800)]
Added test for the ROC command

14 years agoAdded a new casereader translator to consolodate cases.
John Darrington [Wed, 10 Jun 2009 03:36:05 +0000 (11:36 +0800)]
Added a new casereader translator to consolodate cases.

This new translator creates a reader which provides
a list of distinct cases in the input, with the weights
consolodated, where applicable.

14 years agoAdded stub for ROC computation
John Darrington [Wed, 10 Jun 2009 01:44:01 +0000 (09:44 +0800)]
Added stub for ROC computation

14 years agoFixed bug inserting cases in data sheet.
John Darrington [Tue, 9 Jun 2009 11:47:08 +0000 (19:47 +0800)]
Fixed bug inserting cases in data sheet.

Cases were not being inserted in the correct position.

14 years agoAdded documentation for the ROC command
John Darrington [Tue, 9 Jun 2009 11:16:24 +0000 (19:16 +0800)]
Added documentation for the ROC command

14 years agoAdded parser for the ROC command.
John Darrington [Tue, 9 Jun 2009 11:15:08 +0000 (19:15 +0800)]
Added parser for the ROC command.