use of org.knime.core.data.DataRow in project knime-core by knime.
the class DoubleCellFilterRowGeneratorTest method testOneBorder2.
/**
* Test on left border using <b>5.0</b>.
*/
public void testOneBorder2() {
DataRow row = new MyTestRow(5.0);
FilterRowGenerator gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, LEFT_IN);
assertTrue(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, LEFT_OUT);
assertFalse(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, RIGHT_IN);
assertTrue(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, RIGHT_OUT);
assertFalse(gen.isIn(row));
}
use of org.knime.core.data.DataRow in project knime-core by knime.
the class DoubleCellFilterRowGeneratorTest method testOneBorder1.
/**
* Test on left border using <b>3.0</b>.
*/
public void testOneBorder1() {
DataRow row = new MyTestRow(3.0);
FilterRowGenerator gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, LEFT_IN);
assertTrue(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, LEFT_OUT);
assertTrue(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, RIGHT_IN);
assertFalse(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, RIGHT_OUT);
assertFalse(gen.isIn(row));
}
use of org.knime.core.data.DataRow in project knime-core by knime.
the class DoubleCellFilterRowGeneratorTest method testOneBorder4.
/**
* Test on left border using <b>8.0</b>.
*/
public void testOneBorder4() {
DataRow row = new MyTestRow(8.0);
FilterRowGenerator gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, 5);
assertFalse(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, 6);
assertFalse(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, 9);
assertTrue(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, 10);
assertTrue(gen.isIn(row));
}
use of org.knime.core.data.DataRow in project knime-core by knime.
the class DoubleCellFilterRowGeneratorTest method testOneBorder5.
/**
* Test on left border using <b>9.0</b>.
*/
public void testOneBorder5() {
DataRow row = new MyTestRow(9.0);
FilterRowGenerator gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, LEFT_IN);
assertFalse(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, LEFT_OUT);
assertFalse(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, RIGHT_IN);
assertTrue(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, RIGHT_OUT);
assertTrue(gen.isIn(row));
}
use of org.knime.core.data.DataRow in project knime-core by knime.
the class DoubleCellFilterRowGeneratorTest method testTwoBorder3.
/**
* Test on left and right border using <b>7.0</b>.
*/
public void testTwoBorder3() {
DataRow row = new MyTestRow(7.0);
FilterRowGenerator gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, LEFT_IN, m_dblRight, RIGHT_IN);
assertFalse(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, LEFT_OUT, m_dblRight, RIGHT_IN);
assertFalse(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, LEFT_IN, m_dblRight, RIGHT_OUT);
assertFalse(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, LEFT_OUT, m_dblRight, RIGHT_OUT);
assertFalse(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, RIGHT_IN, m_dblRight, LEFT_IN);
assertTrue(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, RIGHT_OUT, m_dblRight, LEFT_OUT);
assertTrue(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, RIGHT_OUT, m_dblRight, LEFT_IN);
assertTrue(gen.isIn(row));
gen = new DoubleCellFilterRowGenerator(IDX, m_dblLeft, RIGHT_IN, m_dblRight, LEFT_OUT);
assertTrue(gen.isIn(row));
}
Aggregations