X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Finteraction.h;h=23bd4f219eaf2813b06f240f91ca27e06ec61a50;hb=ac68295023b2145ca2cb5357f9f7115a9f591169;hp=070060781635131ca91f05fb6ac7e787f421f48d;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp diff --git a/src/math/interaction.h b/src/math/interaction.h index 0700607816..23bd4f219e 100644 --- a/src/math/interaction.h +++ b/src/math/interaction.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2011 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 @@ -14,5 +14,39 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -gsl_vector * -get_interaction (union value **, const struct variable **, size_t); + +#ifndef _INTERACTION_H__ +#define _INTERACTION_H__ 1 + +#include +#include "data/missing-values.h" + +struct interaction; +struct variable; +struct string; + +#include +struct interaction +{ + size_t n_vars; + const struct variable **vars; +}; + +struct interaction * interaction_create (const struct variable *); +struct interaction * interaction_clone (const struct interaction *); +void interaction_destroy (struct interaction *); +void interaction_add_variable (struct interaction *, const struct variable *); +void interaction_dump (const struct interaction *); +void interaction_to_string (const struct interaction *iact, struct string *str); +bool interaction_is_proper_subset (const struct interaction *x, const struct interaction *y); +bool interaction_is_subset (const struct interaction *x, const struct interaction *y); + + +struct ccase; +unsigned int interaction_case_hash (const struct interaction *, const struct ccase *, unsigned int base); +bool interaction_case_equal (const struct interaction *, const struct ccase *, const struct ccase *); +bool interaction_case_is_missing (const struct interaction *, const struct ccase *, enum mv_class); +int interaction_case_cmp_3way (const struct interaction *, const struct ccase *, const struct ccase *); + + +#endif