|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DensityBasedClusterer
Interface for clusterers that can estimate the density for a given instance. Implementations will typically extend AbstractDensityBasedClusterer.
Method Summary | |
---|---|
double[] |
clusterPriors()
Returns the prior probability of each cluster. |
double[] |
distributionForInstance(Instance instance)
Returns the cluster probability distribution for an instance. |
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. |
Methods inherited from interface weka.clusterers.Clusterer |
---|
buildClusterer, clusterInstance, getCapabilities, numberOfClusters |
Method Detail |
---|
double[] clusterPriors() throws Exception
Exception
- if priors could not be returned successfullydouble[] logDensityPerClusterForInstance(Instance instance) throws Exception
instance
- the instance to compute the density for
Exception
- if the density could not be computed successfullydouble logDensityForInstance(Instance instance) throws Exception
instance
- the instance to compute the density for
Exception
- if the density could not be computed successfullydouble[] logJointDensitiesForInstance(Instance inst) throws Exception
inst
- the instance
Exception
- if values could not be computeddouble[] distributionForInstance(Instance instance) throws Exception
distributionForInstance
in interface Clusterer
instance
- the instance to be clustered
Exception
- if computation fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |