if (numValues == 1 && valueDistributions[i][0] == 0) {
bins[i] = NullNumericArray.getInstance();
} else if (numValues <= 2) {
bins[i] = new BitNumericArray(instanceCount);
} else if (numValues <= Byte.MAX_VALUE) {
bins[i] = new ByteNumericArray(instanceCount);
} else if (numValues <= Short.MAX_VALUE) {
bins[i] = new ShortNumericArray(instanceCount);
} else {
throw new Exception("One of your features have more than " + Short.MAX_VALUE
+ " distinct values. The support for this feature is not implemented yet.");