Examples of sampleFromPosterior()


Examples of org.apache.mahout.clustering.DistanceMeasureCluster.sampleFromPosterior()

  @Override
  public Model<VectorWritable>[] sampleFromPosterior(Model<VectorWritable>[] posterior) {
    Model<VectorWritable>[] result = new DistanceMeasureCluster[posterior.length];
    for (int i = 0; i < posterior.length; i++) {
      DistanceMeasureCluster m = (DistanceMeasureCluster) posterior[i];
      result[i] = m.sampleFromPosterior();
    }
    return result;
  }

  public void setMeasure(DistanceMeasure measure) {
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.