程序包 weka.clusterers
类 AbstractDensityBasedClusterer
java.lang.Object
weka.clusterers.AbstractClusterer
weka.clusterers.AbstractDensityBasedClusterer
- 所有已实现的接口:
Serializable
,Cloneable
,Clusterer
,DensityBasedClusterer
,CapabilitiesHandler
,RevisionHandler
public abstract class AbstractDensityBasedClusterer
extends AbstractClusterer
implements DensityBasedClusterer
Abstract clustering model that produces (for each test instance)
an estimate of the membership in each cluster
(ie. a probability distribution).
- 版本:
- $Revision: 1.1 $
- 作者:
- Mark Hall (mhall@cs.waikato.ac.nz), Eibe Frank (eibe@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract double[]
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[]
Returns the logs of the joint densities for a given instance.static DensityBasedClusterer[]
makeCopies
(DensityBasedClusterer model, int num) Creates copies of the current clusterer.从类继承的方法 weka.clusterers.AbstractClusterer
buildClusterer, clusterInstance, forName, getCapabilities, getRevision, makeCopies, makeCopy, numberOfClusters
从接口继承的方法 weka.clusterers.Clusterer
buildClusterer, clusterInstance, getCapabilities, numberOfClusters
-
构造器详细资料
-
AbstractDensityBasedClusterer
public AbstractDensityBasedClusterer()
-
-
方法详细资料
-
clusterPriors
Returns the prior probability of each cluster.- 指定者:
clusterPriors
在接口中DensityBasedClusterer
- 返回:
- the prior probability for each cluster
- 抛出:
Exception
- if priors could not be returned successfully
-
logDensityPerClusterForInstance
Computes the log of the conditional density (per cluster) for a given instance.- 指定者:
logDensityPerClusterForInstance
在接口中DensityBasedClusterer
- 参数:
instance
- the instance to compute the density for- 返回:
- an array containing the estimated densities
- 抛出:
Exception
- if the density could not be computed successfully
-
logDensityForInstance
Computes the density for a given instance.- 指定者:
logDensityForInstance
在接口中DensityBasedClusterer
- 参数:
instance
- the instance to compute the density for- 返回:
- the density.
- 抛出:
Exception
- if the density could not be computed successfully
-
distributionForInstance
Returns the cluster probability distribution for an instance.- 指定者:
distributionForInstance
在接口中Clusterer
- 指定者:
distributionForInstance
在接口中DensityBasedClusterer
- 覆盖:
distributionForInstance
在类中AbstractClusterer
- 参数:
instance
- the instance to be clustered- 返回:
- the probability distribution
- 抛出:
Exception
- if computation fails
-
logJointDensitiesForInstance
Returns the logs of the joint densities for a given instance.- 指定者:
logJointDensitiesForInstance
在接口中DensityBasedClusterer
- 参数:
inst
- the instance- 返回:
- the array of values
- 抛出:
Exception
- if values could not be computed
-
makeCopies
public static DensityBasedClusterer[] makeCopies(DensityBasedClusterer model, int num) throws Exception Creates copies of the current clusterer. Note that this method now uses Serialization to perform a deep copy, so the Clusterer object must be fully Serializable. Any currently built model will now be copied as well.- 参数:
model
- an example clusterer to copynum
- the number of clusterer copies to create.- 返回:
- an array of clusterers.
- 抛出:
Exception
- if an error occurs
-