|
||||||||||
| 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 |
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, distributionForInstance, getCapabilities, numberOfClusters |
| Method Detail |
|---|
double[] clusterPriors()
throws java.lang.Exception
java.lang.Exception - if priors could not be
returned successfully
double[] logDensityPerClusterForInstance(Instance instance)
throws java.lang.Exception
instance - the instance to compute the density for
java.lang.Exception - if the density could not be computed
successfully
double logDensityForInstance(Instance instance)
throws java.lang.Exception
instance - the instance to compute the density for
java.lang.Exception - if the density could not be computed successfully
double[] logJointDensitiesForInstance(Instance inst)
throws java.lang.Exception
inst - the instance
java.lang.Exception - if values could not be computed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||