int label = Utils.findLabel(descriptor);
// all the vectors have the same label (0)
double[][] temp = Utils.randomDoublesWithSameLabel(rng, descriptor, 100, 0);
String[] sData = Utils.double2String(temp);
Dataset dataset = DataLoader.generateDataset(descriptor, sData);
Data data = DataLoader.loadData(dataset, sData);
DefaultIgSplit iG = new DefaultIgSplit();
double expected = 0.0 - 1.0 * Math.log(1.0) / Math.log(2.0);
assertEquals(expected, iG.entropy(data));