Examples of BitNumericArray


Examples of edu.uci.jforestsx.dataset.BitNumericArray

    for (int i = 0; i < featureCount; i++) {
      int numValues = valueDistributions[i].length;
      if (numValues == 1 && valueDistributions[i][0] == 0) {
        bins[i] = NullNumericArray.getInstance();
      } else if (numValues <= 2) {
        bins[i] = new BitNumericArray(1);
      } else {
        throw new RuntimeException("One of your features have more than 2"
          + " distinct values. The support for this feature is not implemented yet.");
      }
    }
View Full Code Here

Examples of edu.uci.jforestsx.dataset.BitNumericArray

    for (int i = 0; i < featureCount; i++) {
      int numValues = valueDistributions[i].length;
      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 {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.