categoricals.c: Reimpliment the get_binary_by subscript function
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 19 Nov 2011 18:33:03 +0000 (19:33 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 19 Nov 2011 18:33:03 +0000 (19:33 +0100)
commit3d10374169a4abfc58a1d3510ba3792286039240
tree43ae220bf756b55147c42587741f7c773d7fa7d5
parent019d870c9a961108b6b5e762ce968db2e06203a7
categoricals.c: Reimpliment the get_binary_by subscript function

Instead of making ad hoc encodings for interactions, use the product
of the encodings of the individual variables.  This should not affect
the outcome of any current test cases, but makes the data flow easier
to follow and to debug.
src/math/categoricals.c