Package edu.uci.jforestsx.dataset

Examples of edu.uci.jforestsx.dataset.ByteNumericArray


      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.");
View Full Code Here

TOP

Related Classes of edu.uci.jforestsx.dataset.ByteNumericArray

Copyright © 2018 www.massapicom. 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.