norm.process();
check(norm);
}
private void check(DataNormalization norm) {
InputField a = norm.getInputFields().get(0);
InputField b = norm.getInputFields().get(1);
Assert.assertEquals(1.0,a.getMin(),0.1);
Assert.assertEquals(6.0,a.getMax(),0.1);
Assert.assertEquals(2.0,b.getMin(),0.1);
Assert.assertEquals(7.0,b.getMax(),0.1);
double[][] outputArray = ((NormalizationStorageArray2D)norm.getStorage()).getArray();
for(int i=0;i<5;i++)
{
Assert.assertEquals(0.1,outputArray[0][i],0.1);