Interface DensityBasedClusterer
- All Superinterfaces:
Clusterer
- All Known Implementing Classes:
AbstractDensityBasedClusterer, EM, MakeDensityBasedClusterer, RandomizableDensityBasedClusterer
Interface for clusterers that can estimate the density for a given instance.
Implementations will typically extend AbstractDensityBasedClusterer.
- Version:
- $Revision: 1.9 $
- Author:
- Mark Hall (mhall@cs.waikato.ac.nz), Eibe Frank (eibe@cs.waikato.ac.nz)
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]Returns the prior probability of each cluster.double[]distributionForInstance(Instance instance) Returns the cluster probability distribution for an instance.doublelogDensityForInstance(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[]Returns the logs of the joint densities for a given instance.Methods inherited from interface Clusterer
buildClusterer, clusterInstance, getCapabilities, numberOfClusters
-
Method Details
-
clusterPriors
-
logDensityPerClusterForInstance
Computes the log of the conditional density (per cluster) for a given instance.- Parameters:
instance- the instance to compute the density for- Returns:
- an array containing the estimated densities
- Throws:
Exception- if the density could not be computed successfully
-
logDensityForInstance
-
logJointDensitiesForInstance
-
distributionForInstance
Returns the cluster probability distribution for an instance.- Specified by:
distributionForInstancein interfaceClusterer- Parameters:
instance- the instance to be clustered- Returns:
- the probability distribution
- Throws:
Exception- if computation fails
-