X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Flinreg.h;h=e53a02956e2077e91f58ede8268ed68ab71fd60d;hb=33790599fcfd2de8553568801791b78704aae4de;hp=32373f5ed484eceab55fc4b1df8cf019d03860cf;hpb=fe8dc2171009e90d2335f159d05f7e6660e24780;p=pspp diff --git a/src/math/linreg.h b/src/math/linreg.h index 32373f5ed4..e53a02956e 100644 --- a/src/math/linreg.h +++ b/src/math/linreg.h @@ -90,6 +90,7 @@ typedef struct pspp_linreg_opts_struct pspp_linreg_opts; struct linreg_struct { + int refcnt; double n_obs; /* Number of observations. */ int n_indeps; /* Number of independent variables. */ int n_coeffs; /* The intercept is not considered a @@ -153,7 +154,8 @@ typedef struct linreg_struct linreg; linreg *linreg_alloc (const struct variable *, const struct variable **, double, size_t); -bool linreg_free (void *); +void linreg_unref (linreg *); +void linreg_ref (linreg *c); /* Fit the linear model via least squares. All pointers passed to pspp_linreg