public interface DensityBasedClusterer extends Clusterer
Modifier and Type | Method and Description |
---|---|
double[] |
clusterPriors()
Returns the prior probability of each cluster.
|
double |
logDensityForInstance(Instance instance)
Computes the density for a given instance.
|
double[] |
logDensityPerClusterForInstance(Instance instance)
Computes the log of the conditional density (per cluster) for a given instance.
|
double[] |
logJointDensitiesForInstance(Instance inst)
Returns the logs of the joint densities for a given instance.
|
buildClusterer, clusterInstance, distributionForInstance, getCapabilities, numberOfClusters
double[] clusterPriors() throws java.lang.Exception
java.lang.Exception
- if priors could not be
returned successfullydouble[] logDensityPerClusterForInstance(Instance instance) throws java.lang.Exception
instance
- the instance to compute the density forjava.lang.Exception
- if the density could not be computed
successfullydouble logDensityForInstance(Instance instance) throws java.lang.Exception
instance
- the instance to compute the density forjava.lang.Exception
- if the density could not be computed successfullydouble[] logJointDensitiesForInstance(Instance inst) throws java.lang.Exception
inst
- the instancejava.lang.Exception
- if values could not be computed