X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fmath%2Finteraction.c;h=c39a0b4846f9233a36188fd7ed50a13c18788829;hb=35cf05a2036e9c3562d275ed812059dd7b2b5d01;hp=aa8826e01ac7869c989088a9d4e9444ee07a7df9;hpb=58e33e78895d4f19240b679a8d0656643a482f41;p=pspp
diff --git a/src/math/interaction.c b/src/math/interaction.c
index aa8826e01a..c39a0b4846 100644
--- a/src/math/interaction.c
+++ b/src/math/interaction.c
@@ -1,5 +1,5 @@
/* PSPP - a program for statistical analysis.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2011, 2012 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,264 +14,195 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see . */
-/*
- An interaction is a structure containing a "product" of other
- variables. The variables can be either categorical or numeric.
- If the variables are all numeric, the interaction is just the
- scalar product. If any of the variables are categorical, their
- product is a vector containing 0's in all but one entry. This entry
- is found by combining the vectors corresponding to the variables'
- OBS_VALS member. If there are K categorical variables, each with
- N_1, N_2, ..., N_K categories, then the interaction will have
- N_1 * N_2 * N_3 *...* N_K - 1 entries.
+#include
- When using these functions, make sure the orders of variables and
- values match when appropriate.
- */
+#include "data/case.h"
+#include "interaction.h"
-#include
-#include
-#include
-#include
-#include
-#include