public interface DensityBasedClusterer extends Clusterer
Modifier and Type | Method and Description |
---|---|
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.
|
buildClusterer, clusterInstance, getCapabilities, numberOfClusters
double[] clusterPriors() throws Exception
Exception
- if priors could not be returned successfullydouble[] logDensityPerClusterForInstance(Instance instance) throws Exception
instance
- the instance to compute the density forException
- if the density could not be computed successfullydouble logDensityForInstance(Instance instance) throws Exception
instance
- the instance to compute the density forException
- if the density could not be computed successfullydouble[] logJointDensitiesForInstance(Instance inst) throws Exception
inst
- the instanceException
- if values could not be computeddouble[] distributionForInstance(Instance instance) throws Exception
distributionForInstance
in interface Clusterer
instance
- the instance to be clusteredException
- if computation failsCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.