@Test
public void testUnitScale() {

    val data0 = new double[] { -3.0, 6.0, 0.0 };
    val scaled0 = DataUtil.unitScale(data0);
    assertArrayEquals(new double[] { 0.0, 1.0, 0.333 }, scaled0, TOLERANCE);
    val data1 = new double[] { 25.0, 50.0, 75.0, 0.0, 100.0 };
    val scaled1 = DataUtil.unitScale(data1);
    assertArrayEquals(new double[] { 0.25, 0.50, 0.75, 0.0, 1.0 }, scaled1, TOLERANCE);
}