Package weka.classifiers.misc.monotone

Examples of weka.classifiers.misc.monotone.DiscreteDistribution


      DiscreteEstimator df =
  (DiscreteEstimator) m_estimatedDistributions.get(cc);
      cc.getValues(attValues);
      switch(m_atype) {
  case AT_MEAN:
    attValues[attValues.length - 1] = (new DiscreteDistribution(df)).mean();
    break;
  case AT_MEDIAN:
    attValues[attValues.length - 1] = (new DiscreteDistribution(df)).median();
    break;
  case AT_MAXPROB:
    attValues[attValues.length - 1] = (new DiscreteDistribution(df)).modes()[0];
    break;
  default:
    throw new IllegalStateException("Not a valid averaging type");
      }
View Full Code Here

TOP

Related Classes of weka.classifiers.misc.monotone.DiscreteDistribution

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.