MOA 12.03
Real Time Analytics for Data Streams
moa.cluster.Cluster Class Reference
Inheritance diagram for moa.cluster.Cluster:
Collaboration diagram for moa.cluster.Cluster:

List of all members.

Public Member Functions

 Cluster ()
abstract double[] getCenter ()
abstract double getWeight ()
 Returns the weight of this cluster, not neccessarily normalized.
abstract double getInclusionProbability (Instance instance)
 Returns the probability of the given point belonging to this cluster.
void getDescription (StringBuilder sb, int i)
 Returns a string representation of this object.
void setId (double id)
double getId ()
boolean isGroundTruth ()
void setGroundTruth (double truth)
double getGroundTruth ()
abstract Instance sample (Random random)
 Samples this cluster by returning a point from inside it.
void setMeasureValue (String measureKey, String value)
void setMeasureValue (String measureKey, double value)
String getMeasureValue (String measureKey)
String getInfo ()

Protected Member Functions

void getClusterSpecificInfo (ArrayList< String > infoTitle, ArrayList< String > infoValue)

Detailed Description

Definition at line 31 of file Cluster.java.


Constructor & Destructor Documentation

moa.cluster.Cluster.Cluster ( )

Definition at line 41 of file Cluster.java.


Member Function Documentation

void moa.cluster.Cluster.getClusterSpecificInfo ( ArrayList< String >  infoTitle,
ArrayList< String >  infoValue 
) [protected]

Reimplemented in moa.cluster.SphereCluster, and moa.clusterers.clustream.ClustreamKernel.

Definition at line 122 of file Cluster.java.

Referenced by moa.cluster.Cluster.getInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

void moa.cluster.Cluster.getDescription ( StringBuilder  sb,
int  indent 
)

Returns a string representation of this object.

Used in AbstractMOAObject.toString to give a string representation of the object.

Parameters:
sbthe stringbuilder to add the description
indentthe number of characters to indent

Implements moa.MOAObject.

Definition at line 72 of file Cluster.java.

double moa.cluster.Cluster.getGroundTruth ( )
double moa.cluster.Cluster.getId ( )
abstract double moa.cluster.Cluster.getInclusionProbability ( Instance  instance) [pure virtual]
String moa.cluster.Cluster.getInfo ( )

Definition at line 141 of file Cluster.java.

Referenced by moa.gui.visualization.ClusterPanel.updateTooltip().

Here is the call graph for this function:

Here is the caller graph for this function:

String moa.cluster.Cluster.getMeasureValue ( String  measureKey)

Definition at line 114 of file Cluster.java.

abstract double moa.cluster.Cluster.getWeight ( ) [pure virtual]

Returns the weight of this cluster, not neccessarily normalized.

It could, for instance, simply return the number of points contined in this cluster.

Returns:
the weight

Implemented in moa.cluster.CFCluster, moa.cluster.SphereCluster, moa.clusterers.clustree.ClusKernel, and moa.clusterers.denstream.MicroCluster.

Referenced by moa.cluster.Cluster.getClusterSpecificInfo(), and moa.gui.visualization.RunVisualizer.weka().

Here is the caller graph for this function:

boolean moa.cluster.Cluster.isGroundTruth ( )

Definition at line 84 of file Cluster.java.

abstract Instance moa.cluster.Cluster.sample ( Random  random) [pure virtual]

Samples this cluster by returning a point from inside it.

Parameters:
randoma random number source
Returns:
an Instance that lies inside this cluster

Implemented in moa.cluster.SphereCluster.

void moa.cluster.Cluster.setGroundTruth ( double  truth)

Definition at line 88 of file Cluster.java.

Referenced by moa.cluster.Clustering.Clustering().

Here is the caller graph for this function:

void moa.cluster.Cluster.setId ( double  id)

Definition at line 76 of file Cluster.java.

Referenced by moa.cluster.Clustering.Clustering().

Here is the caller graph for this function:

void moa.cluster.Cluster.setMeasureValue ( String  measureKey,
double  value 
)

Definition at line 109 of file Cluster.java.

void moa.cluster.Cluster.setMeasureValue ( String  measureKey,
String  value 
)

Definition at line 105 of file Cluster.java.

Referenced by moa.evaluation.F1.evaluateClustering().

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations