/[pspp]/pspp/src/examine.q
ViewVC logotype

Diff of /pspp/src/examine.q

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.26 by jmd, Fri Apr 29 01:02:14 2005 UTC revision 1.27 by jmd, Tue May 3 11:26:04 2005 UTC
# Line 612  factor_calc(struct ccase *c, int case_no Line 612  factor_calc(struct ccase *c, int case_no
612    
613    while ( fctr)    while ( fctr)
614      {      {
615          struct factor_statistics **foo ;
616        union value indep_vals[2] ;        union value indep_vals[2] ;
617    
618        indep_vals[0] = * case_data(c, fctr->indep_var[0]->fv);        indep_vals[0] = * case_data(c, fctr->indep_var[0]->fv);
# Line 623  factor_calc(struct ccase *c, int case_no Line 624  factor_calc(struct ccase *c, int case_no
624    
625        assert(fctr->fstats);        assert(fctr->fstats);
626    
627        struct factor_statistics **foo = ( struct factor_statistics ** )        foo = ( struct factor_statistics ** )
628          hsh_probe(fctr->fstats, (void *) &indep_vals);          hsh_probe(fctr->fstats, (void *) &indep_vals);
629    
630        if ( !*foo )        if ( !*foo )
# Line 1508  populate_descriptives(struct tab_table * Line 1509  populate_descriptives(struct tab_table *
1509    
1510    tab_text (tbl, col,    tab_text (tbl, col,
1511              row + 3,              row + 3,
1512              TAB_LEFT | TAT_TITLE,              TAB_LEFT | TAT_TITLE | TAT_PRINTF,
1513              _("5% Trimmed Mean"));              _("5%% Trimmed Mean"));
1514    
1515    tab_float (tbl, col + 2,    tab_float (tbl, col + 2,
1516               row + 3,               row + 3,
# Line 1689  box_plot_variables(const struct factor * Line 1690  box_plot_variables(const struct factor *
1690      {      {
1691        double y_min = DBL_MAX;        double y_min = DBL_MAX;
1692        double y_max = -DBL_MAX;        double y_max = -DBL_MAX;
1693        struct chart *ch;        struct chart *ch = chart_create();
   
       ch = chart_create();  
   
1694        const char *s = factor_to_string(fctr, *fs, 0 );        const char *s = factor_to_string(fctr, *fs, 0 );
1695    
1696        chart_write_title(ch, s);        chart_write_title(ch, s);
# Line 1856  np_plot(const struct metrics *m, const c Line 1854  np_plot(const struct metrics *m, const c
1854    {    {
1855      /* We have to cache the detrended data, beacause we need to      /* We have to cache the detrended data, beacause we need to
1856         find its limits before we can plot it */         find its limits before we can plot it */
1857      double *d_data;      double *d_data = xmalloc (m->n_data * sizeof(double));
     d_data = xmalloc (m->n_data * sizeof(double));  
1858      double d_max = -DBL_MAX;      double d_max = -DBL_MAX;
1859      double d_min = DBL_MAX;      double d_min = DBL_MAX;
1860      for ( i = 0 ; i < m->n_data; ++i )      for ( i = 0 ; i < m->n_data; ++i )

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26