TreeCompiler.generateClassName(), root);
}
@Test
public void testNominalSwitches() {
DoubleVector vec = new DenseDoubleVector(new double[] { 0, 0, 0 });
int result = compiledRoot.predict(vec);
Assert.assertEquals(0, result);
vec = new DenseDoubleVector(new double[] { 1, 0, 5 });
result = compiledRoot.predict(vec);
Assert.assertEquals(25, result);
vec = new DenseDoubleVector(new double[] { -1, 0, 8 });
result = compiledRoot.predict(vec);
Assert.assertEquals(88, result);
vec = new DenseDoubleVector(new double[] { 0, 0, 18 });
result = compiledRoot.predict(vec);
Assert.assertEquals(33, result);
}