#include "math/correlation.h"
#include "math/covariance.h"
#include "math/moments.h"
-#include "output/chart-item.h"
#include "output/charts/scree.h"
#include "output/pivot-table.h"
else if (lex_match_id (lexer, "ITERATE"))
{
if (lex_force_match (lexer, T_LPAREN)
- && lex_force_int (lexer))
+ && lex_force_int_range (lexer, "ITERATE", 0, INT_MAX))
{
n_iterations = lex_integer (lexer);
lex_get (lexer);
id->ai_cov = NULL;
gsl_matrix_free (id->ai_cor);
id->ai_cor = NULL;
- gsl_matrix_free (id->mm.corr);
- id->mm.corr = NULL;
- gsl_matrix_free (id->mm.cov);
- id->mm.cov = NULL;
+
+ matrix_material_uninit (&id->mm);
}
idata_free (id);
struct pivot_table *table = pivot_table_create (
N_("Total Variance Explained"));
- table->omit_empty = true;
- /* xgettext:no-c-format */
pivot_dimension_create (table, PIVOT_AXIS_COLUMN, N_("Statistics"),
N_("Total"), PIVOT_RC_OTHER,
+ /* xgettext:no-c-format */
N_("% of Variance"), PIVOT_RC_PERCENT,
+ /* xgettext:no-c-format */
N_("Cumulative %"), PIVOT_RC_PERCENT);
struct pivot_dimension *phase = pivot_dimension_create (