@Test
public void testUnitScale_constant() {

    val data = new double[] { 3.0, 3.0 };
    val scaled = DataUtil.unitScale(data);
    assertArrayEquals(new double[] { 0.0, 0.0 }, scaled, TOLERANCE);
}