|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.clusterers.AbstractClusterer
weka.clusterers.AbstractDensityBasedClusterer
public abstract class AbstractDensityBasedClusterer
Abstract clustering model that produces (for each test instance) an estimate of the membership in each cluster (ie. a probability distribution).
| Constructor Summary | |
|---|---|
AbstractDensityBasedClusterer()
|
|
| Method Summary | |
|---|---|
abstract 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. |
abstract 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. |
static DensityBasedClusterer[] |
makeCopies(DensityBasedClusterer model,
int num)
Creates copies of the current clusterer. |
| Methods inherited from class weka.clusterers.AbstractClusterer |
|---|
buildClusterer, clusterInstance, forName, getCapabilities, getRevision, makeCopies, makeCopy, numberOfClusters |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface weka.clusterers.Clusterer |
|---|
buildClusterer, clusterInstance, getCapabilities, numberOfClusters |
| Constructor Detail |
|---|
public AbstractDensityBasedClusterer()
| Method Detail |
|---|
public abstract double[] clusterPriors()
throws java.lang.Exception
clusterPriors in interface DensityBasedClustererjava.lang.Exception - if priors could not be
returned successfully
public abstract double[] logDensityPerClusterForInstance(Instance instance)
throws java.lang.Exception
logDensityPerClusterForInstance in interface DensityBasedClustererinstance - the instance to compute the density for
java.lang.Exception - if the density could not be computed
successfully
public double logDensityForInstance(Instance instance)
throws java.lang.Exception
logDensityForInstance in interface DensityBasedClustererinstance - the instance to compute the density for
java.lang.Exception - if the density could not be computed successfully
public double[] distributionForInstance(Instance instance)
throws java.lang.Exception
distributionForInstance in interface ClustererdistributionForInstance in class AbstractClustererinstance - the instance to be clustered
java.lang.Exception - if computation fails
public double[] logJointDensitiesForInstance(Instance inst)
throws java.lang.Exception
logJointDensitiesForInstance in interface DensityBasedClustererinst - the instance
java.lang.Exception - if values could not be computed
public static DensityBasedClusterer[] makeCopies(DensityBasedClusterer model,
int num)
throws java.lang.Exception
model - an example clusterer to copynum - the number of clusterer copies to create.
java.lang.Exception - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||