assertEquals(0.707107, zScore.getTransformedValue(user.getPreferenceFor("0")), EPSILON);
assertEquals(-0.707107, zScore.getTransformedValue(user.getPreferenceFor("1")), EPSILON);
}
public void testExample() throws Exception {
User user = getUser("test", 5.0, 7.0, 9.0);
PreferenceTransform zScore = new ZScore();
assertEquals(-1.0, zScore.getTransformedValue(user.getPreferenceFor("0")), EPSILON);
assertEquals(0.0, zScore.getTransformedValue(user.getPreferenceFor("1")), EPSILON);
assertEquals(1.0, zScore.getTransformedValue(user.getPreferenceFor("2")), EPSILON);
}