org.apache.mahout.clustering
Interface ModelDistribution<O>

All Known Implementing Classes:
AbstractVectorModelDistribution, DistanceMeasureClusterDistribution, GaussianClusterDistribution

public interface ModelDistribution<O>

A model distribution allows us to sample a model from its prior distribution.


Method Summary
 Model<O>[] sampleFromPosterior(Model<O>[] posterior)
          Return a list of models sampled from the posterior
 Model<O>[] sampleFromPrior(int howMany)
          Return a list of models sampled from the prior
 

Method Detail

sampleFromPrior

Model<O>[] sampleFromPrior(int howMany)
Return a list of models sampled from the prior

Parameters:
howMany - the int number of models to return
Returns:
a Model[] representing what is known apriori

sampleFromPosterior

Model<O>[] sampleFromPosterior(Model<O>[] posterior)
Return a list of models sampled from the posterior

Parameters:
posterior - the Model[] after observations
Returns:
a Model[] representing what is known apriori


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