X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcoefficient.h;h=5c9b61d174653ccb7fd2beca620cf90c0759d198;hb=945fd370f9fb880b310fb88f868ad47c2ae84533;hp=0dc1a0353943b67e81e1a7bf5d73f4b4a4692874;hpb=8266aff290c15d0bfc89f054582451070562c5f3;p=pspp-builds.git diff --git a/src/math/coefficient.h b/src/math/coefficient.h index 0dc1a035..5c9b61d1 100644 --- a/src/math/coefficient.h +++ b/src/math/coefficient.h @@ -1,5 +1,5 @@ /* - lib/linreg/coefficient.c + src/math/coefficient.c Copyright (C) 2005 Free Software Foundation, Inc. Written by Jason H Stover. @@ -35,7 +35,7 @@ struct design_matrix; storage. Therefore non-essential members of the struct will be allocated only when requested. */ -struct pspp_linreg_coeff +struct pspp_coeff { double estimate; /* Estimated coefficient. */ double std_err; /* Standard error of the estimate. */ @@ -56,20 +56,20 @@ struct pspp_linreg_coeff }; -void pspp_linreg_coeff_free (struct pspp_linreg_coeff *); +void pspp_coeff_free (struct pspp_coeff *); /* Initialize the variable and value pointers inside the coefficient structures for the linear model. */ -void pspp_linreg_coeff_init (pspp_linreg_cache *, struct design_matrix *); +void pspp_coeff_init (pspp_linreg_cache *, struct design_matrix *); void -pspp_linreg_coeff_set_estimate (struct pspp_linreg_coeff *, double estimate); +pspp_coeff_set_estimate (struct pspp_coeff *, double estimate); void -pspp_linreg_coeff_set_std_err (struct pspp_linreg_coeff *, double std_err); +pspp_coeff_set_std_err (struct pspp_coeff *, double std_err); /* Accessor functions for matching coefficients and variables. @@ -78,31 +78,31 @@ pspp_linreg_coeff_set_std_err (struct pspp_linreg_coeff *, double std_err); /* Return the estimated value of the coefficient. */ -double pspp_linreg_coeff_get_est (const struct pspp_linreg_coeff *); +double pspp_coeff_get_est (const struct pspp_coeff *); /* Return the standard error of the estimated coefficient. */ -double pspp_linreg_coeff_get_std_err (const struct pspp_linreg_coeff *); +double pspp_coeff_get_std_err (const struct pspp_coeff *); /* How many variables are associated with this coefficient? */ -int pspp_linreg_coeff_get_n_vars (struct pspp_linreg_coeff *); +int pspp_coeff_get_n_vars (struct pspp_coeff *); /* Which variable does this coefficient match? The int argument is usually 0, unless the coefficient refers to an interaction. */ -const struct variable *pspp_linreg_coeff_get_var (struct pspp_linreg_coeff *, +const struct variable *pspp_coeff_get_var (struct pspp_coeff *, int); /* Which value is associated with this coefficient/variable comination? */ -const union value *pspp_linreg_coeff_get_value (struct pspp_linreg_coeff *, +const union value *pspp_coeff_get_value (struct pspp_coeff *, const struct variable *); -const struct pspp_linreg_coeff *pspp_linreg_get_coeff (const pspp_linreg_cache +const struct pspp_coeff *pspp_linreg_get_coeff (const pspp_linreg_cache *, const struct variable *,