{-0.1233, -1.8783}
};
@Test
public void testTrain() throws FileNotFoundException {
IKohonenMap map = new KohonenMap();
map.setData(getExampleInput());
map.train(alfa, groupsCount, iterationsCount);
Double[][] weights = map.getWeights();
for (int i = 0; i < weights.length; i++) {
for (int j = 0; j < weights[0].length; j++) {
assertTrue(weights[i][j] - expectedWeights[i][j] < 0.1);
}
}