X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fdesign-matrix.c;h=298d03357b7208e66392c0b15bec0eb9e0f0146b;hb=056009fe999768b37cba5e12e9fef9901c856d6a;hp=163c42fab66789e446af3b5643c8312f8d6b93be;hpb=41a3a550334da96a9b4e5e089ad1768acf288092;p=pspp-builds.git diff --git a/src/math/design-matrix.c b/src/math/design-matrix.c index 163c42fa..298d0335 100644 --- a/src/math/design-matrix.c +++ b/src/math/design-matrix.c @@ -1,21 +1,18 @@ -/* PSPP - Creates design-matrices. +/* PSPP - a program for statistical analysis. 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 - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. */ + along with this program. If not, see . */ /* Create design matrices for procedures that need them. @@ -29,7 +26,6 @@ #include #include -#include #include #include #include @@ -39,6 +35,8 @@ #include #include +#include "xalloc.h" + #define DM_COLUMN_NOT_FOUND -1 #define DM_INDEX_NOT_FOUND -3 @@ -153,7 +151,7 @@ dm_var_to_last_column (const struct design_matrix *dm, } /* - Set the appropriate value in the design matrix, + Set the appropriate value in the design matrix, whether that value is from a categorical or numeric variable. For a categorical variable, only the usual binary encoding is allowed.