X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Ffrequencies.c;h=0404ceb7992a6a5906da3a9fc357327c37eab2bf;hb=f81e16108f3becda7dc7858f181f559f7ae96401;hp=c96b4eab190efb7d6872f5d20d2e82a994f6cf91;hpb=3ee177d76c0e46217d3dfa13746637178178501e;p=pspp diff --git a/src/language/stats/frequencies.c b/src/language/stats/frequencies.c index c96b4eab19..0404ceb799 100644 --- a/src/language/stats/frequencies.c +++ b/src/language/stats/frequencies.c @@ -296,7 +296,7 @@ dump_freq_table (const struct var_freqs *vf, const struct variable *wv) const struct freq_tab *ft = &vf->tab; struct pivot_table *table = pivot_table_create__ (pivot_value_new_variable ( - vf->var)); + vf->var), "Frequencies"); pivot_table_set_weight_var (table, wv); pivot_dimension_create (table, PIVOT_AXIS_COLUMN, N_("Statistics"), @@ -443,7 +443,7 @@ postprocess_freq_tab (const struct frq_proc *frq, struct var_freqs *vf) /* Summary statistics. */ ft->valid_cases = 0.0; - for(i = 0 ; i < ft->n_valid ; ++i ) + for(i = 0 ; i < ft->n_valid ; ++i) { f = &ft->valid[i]; ft->valid_cases += f->count; @@ -451,7 +451,7 @@ postprocess_freq_tab (const struct frq_proc *frq, struct var_freqs *vf) } ft->total_cases = ft->valid_cases ; - for(i = 0 ; i < ft->n_missing ; ++i ) + for(i = 0 ; i < ft->n_missing ; ++i) { f = &ft->missing[i]; ft->total_cases += f->count; @@ -545,7 +545,7 @@ postcalc (struct frq_proc *frq, const struct dataset *ds) histogram = freq_tab_to_hist (frq, &vf->tab, vf->var); - if ( histogram) + if (histogram) { chart_item_submit (histogram_chart_create ( histogram->gsl_hist, var_to_string(vf->var), @@ -622,7 +622,7 @@ cmd_frequencies (struct lexer *lexer, struct dataset *ds) lex_match (lexer, T_SLASH); if (lex_match_id (lexer, "VARIABLES")) { - if (! lex_force_match (lexer, T_EQUALS) ) + if (! lex_force_match (lexer, T_EQUALS)) goto error; } @@ -1037,7 +1037,7 @@ cmd_frequencies (struct lexer *lexer, struct dataset *ds) } else if (lex_match_id (lexer, "FREQ")) { - if ( lex_match (lexer, T_LPAREN)) + if (lex_match (lexer, T_LPAREN)) { if (lex_force_num (lexer)) { @@ -1051,7 +1051,7 @@ cmd_frequencies (struct lexer *lexer, struct dataset *ds) } else if (lex_match_id (lexer, "PERCENT")) { - if ( lex_match (lexer, T_LPAREN)) + if (lex_match (lexer, T_LPAREN)) { if (lex_force_num (lexer)) { @@ -1351,7 +1351,7 @@ freq_tab_to_hist (const struct frq_proc *frq, const struct freq_tab *ft, histogram = histogram_create (bin_width, x_min, x_max); - if ( histogram == NULL) + if (histogram == NULL) return NULL; for (i = 0; i < ft->n_valid; i++)