All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.clusterers.DistributionClusterer

java.lang.Object
   |
   +----weka.clusterers.Clusterer
           |
           +----weka.clusterers.DistributionClusterer

public abstract class DistributionClusterer
extends Clusterer
Abstract clustering model that produces (for each test instance) an estimate of the membership in each cluster (ie. a probability distribution).

Version:
$Revision: 1.3 $
Author:
Mark Hall (mhall@cs.waikato.ac.nz)

Constructor Index

 o DistributionClusterer()

Method Index

 o clusterInstance(Instance)
Assigns an instance to a Cluster.
 o distributionForInstance(Instance)
Predicts the cluster memberships for a given instance.

Constructors

 o DistributionClusterer
 public DistributionClusterer()

Methods

 o distributionForInstance
 public abstract double[] distributionForInstance(Instance instance) throws Exception
Predicts the cluster memberships for a given instance.

Parameters:
instance - the instance to be assigned a cluster.
Returns:
an array containing the estimated membership probabilities of the test instance in each cluster (this should sum to at most 1)
Throws: Exception
if distribution could not be computed successfully
 o clusterInstance
 public int clusterInstance(Instance instance) throws Exception
Assigns an instance to a Cluster.

Parameters:
instance - the instance to be classified
Returns:
the predicted most likely cluster for the instance.
Throws: Exception
if an error occurred during the prediction
Overrides:
clusterInstance in class Clusterer

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home