1 /* PSPP - a program for statistical analysis.
2 Copyright (C) 2009 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 #include <data/case.h>
21 struct interaction_variable;
22 struct interaction_value;
24 struct interaction_variable * interaction_variable_create (const struct variable **, int);
25 void interaction_variable_destroy (struct interaction_variable *);
26 struct interaction_value * interaction_value_create (const struct interaction_variable *, const union value **);
27 void interaction_value_destroy (struct interaction_value *);
28 size_t interaction_variable_get_n_vars (const struct interaction_variable *);
29 double interaction_value_get_nonzero_entry (const struct interaction_value *);
30 const union value *interaction_value_get (const struct interaction_value *);
31 const struct variable * interaction_get_variable (const struct interaction_variable *);
32 size_t interaction_get_n_numeric (const struct interaction_variable *);
33 size_t interaction_get_n_alpha (const struct interaction_variable *);
34 size_t interaction_get_n_vars (const struct interaction_variable *);
35 const struct variable * interaction_get_member (const struct interaction_variable *, size_t);
36 bool is_interaction (const struct variable *, const struct interaction_variable **, size_t);
37 struct interaction_value *
38 interaction_case_data (const struct ccase *, const struct interaction_variable *);
39 double interaction_value_get_nonzero_entry (const struct interaction_value *);