X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fdesign-matrix.h;h=2b6bae508a2522e2dad22d2030b1da35096e4340;hb=41a3a550334da96a9b4e5e089ad1768acf288092;hp=7f13fe87d5bc276422ac9537142e6a1ce850c1d9;hpb=dcf9b154cbcaa35c3d8459a201b77eec8bcb30bd;p=pspp-builds.git diff --git a/src/math/design-matrix.h b/src/math/design-matrix.h index 7f13fe87..2b6bae50 100644 --- a/src/math/design-matrix.h +++ b/src/math/design-matrix.h @@ -1,6 +1,5 @@ /* PSPP - Creates design matrices. Copyright (C) 2005 Free Software Foundation, Inc. - Written by Jason H Stover . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -26,8 +25,8 @@ #include #include -#include "category.h" -#include "cat-routines.h" +#include + struct design_matrix_var { size_t first_column; /* First column for this variable in @@ -41,6 +40,7 @@ struct design_matrix_var size_t last_column; const struct variable *v; }; + struct design_matrix { gsl_matrix *m; @@ -62,7 +62,7 @@ struct design_matrix */ size_t n_vars; }; -union value *cat_vector_to_value (const gsl_vector *, struct variable *); + struct design_matrix *design_matrix_create (int, const struct variable *[], const size_t); @@ -74,12 +74,13 @@ void design_matrix_set_categorical (struct design_matrix *, size_t, const union value *); void design_matrix_set_numeric (struct design_matrix *, size_t, - const struct variable *, const union value *); + const struct variable *, + const union value *); size_t design_matrix_var_to_column (const struct design_matrix *, const struct variable *); -struct variable *design_matrix_col_to_var (const struct design_matrix *, +const struct variable *design_matrix_col_to_var (const struct design_matrix *, size_t); #endif