X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Finteraction.c;h=c8ead42912f17787dc4c01e8e46ced248e255a59;hb=26b487c57f0f8e495929dec6e0a25971dbfd76bf;hp=09149cfe222226a445bc3ec3a7597a24d07f237f;hpb=f5c108becd49d78f4898cab11352291f5689d24e;p=pspp-builds.git diff --git a/src/math/interaction.c b/src/math/interaction.c index 09149cfe..c8ead429 100644 --- a/src/math/interaction.c +++ b/src/math/interaction.c @@ -1,22 +1,18 @@ -/* PSPP - Creates data structures to store interactions for - statistical routines. - +/* PSPP - a program for statistical analysis. Copyright (C) 2007 Free Software Foundation, Inc. - 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 . */ /* An interaction is a gsl_vector containing a "product" of other @@ -29,14 +25,17 @@ N_1, N_2, ..., N_K categories, then the interaction will have N_1 * N_2 * N_3 *...* N_K - 1 entries. */ + +#include #include -#include #include #include #include #include #include "interaction.h" +#include "xalloc.h" + /* Convert a list of values to a binary vector. The order of VALS must correspond to the order of V.