@CodeReview(reviewer="Kevin R. Dixon", date="2008-07-23", changesNeeded=false, comments="Looks fine.") public class GaussianClusterDivergenceFunction extends AbstractCloneableSerializable implements ClusterDivergenceFunction<GaussianCluster,Vector>
Modifier and Type | Field and Description |
---|---|
static GaussianClusterDivergenceFunction |
INSTANCE
An instance of the class since it has no internal data.
|
Constructor and Description |
---|
GaussianClusterDivergenceFunction()
Creates a new instance of GaussianClusterDivergenceFunction.
|
Modifier and Type | Method and Description |
---|---|
double |
evaluate(GaussianCluster first,
Vector second)
Evaluates the divergence between the Gaussian cluster and the given
vector, which is the negative of likelihood that the cluster was
generated.
|
clone
public static final GaussianClusterDivergenceFunction INSTANCE
public GaussianClusterDivergenceFunction()
public double evaluate(GaussianCluster first, Vector second)
evaluate
in interface DivergenceFunction<GaussianCluster,Vector>
first
- The Gaussian cluster.second
- The vector to calculate the divergence to