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

List of all members.

Public Member Functions

String getPurposeString ()
 Gets the purpose of this object.
 AbstractClusterer ()
void prepareForUseImpl (TaskMonitor monitor, ObjectRepository repository)
 This method describes the implementation of how to prepare this object for use.
void setModelContext (InstancesHeader ih)
InstancesHeader getModelContext ()
void setRandomSeed (int s)
boolean trainingHasStarted ()
double trainingWeightSeenByModel ()
void resetLearning ()
void trainOnInstance (Instance inst)
Measurement[] getModelMeasurements ()
void getDescription (StringBuilder out, int indent)
 Returns a string representation of this object.
Clusterer[] getSubClusterers ()
Clusterer copy ()
 This method produces a copy of this object.
String getClassNameString ()
String getClassLabelString (int classLabelIndex)
String getAttributeNameString (int attIndex)
String getNominalValueString (int attIndex, int valIndex)
AWTRenderer getAWTRenderer ()
abstract void resetLearningImpl ()
abstract void trainOnInstanceImpl (Instance inst)
abstract void getModelDescription (StringBuilder out, int indent)
boolean implementsMicroClusterer ()
boolean keepClassLabel ()
Clustering getMicroClusteringResult ()

Static Public Member Functions

static boolean contextIsCompatible (InstancesHeader originalContext, InstancesHeader newContext)

Public Attributes

FlagOption evaluateMicroClusteringOption

Protected Member Functions

abstract Measurement[] getModelMeasurementsImpl ()

Static Protected Member Functions

static int modelAttIndexToInstanceAttIndex (int index, Instance inst)
static int modelAttIndexToInstanceAttIndex (int index, Instances insts)

Protected Attributes

InstancesHeader modelContext
double trainingWeightSeenByModel = 0.0
int randomSeed = 1
IntOption randomSeedOption
Random clustererRandom
Clustering clustering

Detailed Description

Definition at line 39 of file AbstractClusterer.java.


Constructor & Destructor Documentation

moa.clusterers.AbstractClusterer.AbstractClusterer ( )

Definition at line 61 of file AbstractClusterer.java.

Here is the call graph for this function:


Member Function Documentation

static boolean moa.clusterers.AbstractClusterer.contextIsCompatible ( InstancesHeader  originalContext,
InstancesHeader  newContext 
) [static]

Definition at line 217 of file AbstractClusterer.java.

Referenced by moa.clusterers.AbstractClusterer.setModelContext().

Here is the caller graph for this function:

Clusterer moa.clusterers.AbstractClusterer.copy ( )

This method produces a copy of this object.

Returns:
a copy of this object

Implements moa.clusterers.Clusterer.

Definition at line 187 of file AbstractClusterer.java.

Here is the call graph for this function:

String moa.clusterers.AbstractClusterer.getAttributeNameString ( int  attIndex)

Definition at line 205 of file AbstractClusterer.java.

Here is the call graph for this function:

AWTRenderer moa.clusterers.AbstractClusterer.getAWTRenderer ( )

Implements moa.gui.AWTRenderable.

Definition at line 265 of file AbstractClusterer.java.

String moa.clusterers.AbstractClusterer.getClassLabelString ( int  classLabelIndex)

Definition at line 200 of file AbstractClusterer.java.

Here is the call graph for this function:

String moa.clusterers.AbstractClusterer.getClassNameString ( )

Definition at line 196 of file AbstractClusterer.java.

Here is the call graph for this function:

void moa.clusterers.AbstractClusterer.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 166 of file AbstractClusterer.java.

Here is the call graph for this function:

Clustering moa.clusterers.AbstractClusterer.getMicroClusteringResult ( )
InstancesHeader moa.clusterers.AbstractClusterer.getModelContext ( )

Implements moa.clusterers.Clusterer.

Definition at line 100 of file AbstractClusterer.java.

abstract void moa.clusterers.AbstractClusterer.getModelDescription ( StringBuilder  out,
int  indent 
) [pure virtual]
Measurement [] moa.clusterers.AbstractClusterer.getModelMeasurements ( )

Implements moa.clusterers.Clusterer.

Definition at line 135 of file AbstractClusterer.java.

Referenced by moa.clusterers.AbstractClusterer.getDescription().

Here is the call graph for this function:

Here is the caller graph for this function:

abstract Measurement [] moa.clusterers.AbstractClusterer.getModelMeasurementsImpl ( ) [protected, pure virtual]
String moa.clusterers.AbstractClusterer.getNominalValueString ( int  attIndex,
int  valIndex 
)

Definition at line 210 of file AbstractClusterer.java.

Here is the call graph for this function:

String moa.clusterers.AbstractClusterer.getPurposeString ( )

Gets the purpose of this object.

Returns:
the string with the purpose of this object

Reimplemented from moa.options.AbstractOptionHandler.

Reimplemented in moa.clusterers.WekaClusteringAlgorithm.

Definition at line 43 of file AbstractClusterer.java.

Clusterer [] moa.clusterers.AbstractClusterer.getSubClusterers ( )

Implements moa.clusterers.Clusterer.

Definition at line 182 of file AbstractClusterer.java.

Referenced by moa.clusterers.AbstractClusterer.getModelMeasurements().

Here is the caller graph for this function:

boolean moa.clusterers.AbstractClusterer.implementsMicroClusterer ( )
boolean moa.clusterers.AbstractClusterer.keepClassLabel ( )

Implements moa.clusterers.Clusterer.

Reimplemented in moa.clusterers.ClusterGenerator, and moa.clusterers.WekaClusteringAlgorithm.

Definition at line 297 of file AbstractClusterer.java.

Referenced by moa.gui.visualization.RunVisualizer.runVisual().

Here is the caller graph for this function:

static int moa.clusterers.AbstractClusterer.modelAttIndexToInstanceAttIndex ( int  index,
Instance  inst 
) [static, protected]

Definition at line 283 of file AbstractClusterer.java.

static int moa.clusterers.AbstractClusterer.modelAttIndexToInstanceAttIndex ( int  index,
Instances  insts 
) [static, protected]

Definition at line 288 of file AbstractClusterer.java.

void moa.clusterers.AbstractClusterer.prepareForUseImpl ( TaskMonitor  monitor,
ObjectRepository  repository 
) [virtual]

This method describes the implementation of how to prepare this object for use.

All classes that extends this class have to implement prepareForUseImpl and not prepareForUse since prepareForUse calls prepareForUseImpl.

Parameters:
monitorthe TaskMonitor to use
repositorythe ObjectRepository to use

Implements moa.options.AbstractOptionHandler.

Definition at line 75 of file AbstractClusterer.java.

Here is the call graph for this function:

void moa.clusterers.AbstractClusterer.resetLearning ( )

Implements moa.clusterers.Clusterer.

Definition at line 120 of file AbstractClusterer.java.

Referenced by moa.clusterers.AbstractClusterer.prepareForUseImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

void moa.clusterers.AbstractClusterer.setModelContext ( InstancesHeader  ih)

Implements moa.clusterers.Clusterer.

Definition at line 86 of file AbstractClusterer.java.

Here is the call graph for this function:

void moa.clusterers.AbstractClusterer.setRandomSeed ( int  s)

Implements moa.clusterers.Clusterer.

Definition at line 104 of file AbstractClusterer.java.

Here is the call graph for this function:

boolean moa.clusterers.AbstractClusterer.trainingHasStarted ( )

Implements moa.clusterers.Clusterer.

Definition at line 112 of file AbstractClusterer.java.

Referenced by moa.clusterers.AbstractClusterer.getDescription(), moa.clusterers.AbstractClusterer.prepareForUseImpl(), and moa.clusterers.AbstractClusterer.setModelContext().

Here is the call graph for this function:

Here is the caller graph for this function:

void moa.clusterers.AbstractClusterer.trainOnInstance ( Instance  inst)

Implements moa.clusterers.Clusterer.

Definition at line 128 of file AbstractClusterer.java.

Here is the call graph for this function:


Member Data Documentation

Definition at line 49 of file AbstractClusterer.java.


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