X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fmath%2Fcoefficient.h;h=8a82f46be98ebec69eaa17ab115c8add71dc4052;hb=d709bb3de888c933c34064440b5431c9b62d9103;hp=5c9b61d174653ccb7fd2beca620cf90c0759d198;hpb=945fd370f9fb880b310fb88f868ad47c2ae84533;p=pspp-builds.git diff --git a/src/math/coefficient.h b/src/math/coefficient.h index 5c9b61d1..8a82f46b 100644 --- a/src/math/coefficient.h +++ b/src/math/coefficient.h @@ -1,22 +1,18 @@ -/* - src/math/coefficient.c - - 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 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 02111-1307, USA. -*/ +/* PSPP - a program for statistical analysis. + Copyright (C) 2005 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 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. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ #ifndef COEFFICIENT_H @@ -27,6 +23,16 @@ #include #include +/* + This file contains definitions of data structures for storing + coefficients of a statistical model. The coefficients are the point + in the model where the theoretical aspects of the model meet the + data. As such, the coefficients are the interface where users need + to match variable names and values with any information about the + model itself. This file and coefficient.c provide this interface + between data and model structures. + */ + struct design_matrix; /* @@ -54,7 +60,7 @@ struct pspp_coeff interaction terms will have more than one variable. */ }; - +typedef struct pspp_coeff coefficient; void pspp_coeff_free (struct pspp_coeff *); @@ -62,7 +68,7 @@ void pspp_coeff_free (struct pspp_coeff *); Initialize the variable and value pointers inside the coefficient structures for the linear model. */ -void pspp_coeff_init (pspp_linreg_cache *, struct design_matrix *); +void pspp_coeff_init (struct pspp_coeff **, const struct design_matrix *); void