org.apache.mahout.clustering
Class DirichletClusteringPolicy

java.lang.Object
  extended by org.apache.mahout.clustering.DirichletClusteringPolicy
All Implemented Interfaces:
ClusteringPolicy

public class DirichletClusteringPolicy
extends Object
implements ClusteringPolicy


Constructor Summary
DirichletClusteringPolicy(int k, double alpha0)
           
 
Method Summary
 Vector select(Vector probabilities)
          Return the index of the most appropriate model
 void update(ClusterClassifier prior)
          Update the policy with the given classifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirichletClusteringPolicy

public DirichletClusteringPolicy(int k,
                                 double alpha0)
Method Detail

select

public Vector select(Vector probabilities)
Description copied from interface: ClusteringPolicy
Return the index of the most appropriate model

Specified by:
select in interface ClusteringPolicy
Parameters:
probabilities - a Vector of pdfs
Returns:
a Vector of weights

update

public void update(ClusterClassifier prior)
Description copied from interface: ClusteringPolicy
Update the policy with the given classifier

Specified by:
update in interface ClusteringPolicy
Parameters:
prior - a ClusterClassifier


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.