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

List of all members.

Public Member Functions

 CFCluster (Instance instance, int dimensions)
 Instantiates an empty kernel with the given dimensionality.
 CFCluster (double[] center, int dimensions)
 CFCluster (CFCluster cluster)
void add (CFCluster cluster)
abstract CFCluster getCF ()
double[] getCenter ()
abstract double getInclusionProbability (Instance instance)
 Returns the probability of the given point belonging to this cluster.
abstract double getRadius ()
 See interface Cluster
double getWeight ()
 See interface Cluster
void setN (double N)
double getN ()

Static Public Member Functions

static void addVectors (double[] a1, double[] a2)
 Adds the second array to the first array element by element.

Public Attributes

double[] LS
 Linear sum of all the points added to the cluster.
double[] SS
 Squared sum of all the points added to the cluster.

Protected Member Functions

 CFCluster (int dimensions)

Protected Attributes

double radiusFactor = 1.8
double N
 Number of points in the cluster.

Detailed Description

Definition at line 25 of file CFCluster.java.


Constructor & Destructor Documentation

moa.cluster.CFCluster.CFCluster ( Instance  instance,
int  dimensions 
)

Instantiates an empty kernel with the given dimensionality.

Parameters:
dimensionsThe number of dimensions of the points that can be in this kernel.

Definition at line 49 of file CFCluster.java.

moa.cluster.CFCluster.CFCluster ( int  dimensions) [protected]

Definition at line 53 of file CFCluster.java.

moa.cluster.CFCluster.CFCluster ( double[]  center,
int  dimensions 
)

Definition at line 61 of file CFCluster.java.

moa.cluster.CFCluster.CFCluster ( CFCluster  cluster)

Definition at line 70 of file CFCluster.java.


Member Function Documentation

void moa.cluster.CFCluster.add ( CFCluster  cluster)

Reimplemented in moa.clusterers.clustream.ClustreamKernel.

Definition at line 76 of file CFCluster.java.

Referenced by moa.clusterers.KMeans.gaussianMeans().

Here is the call graph for this function:

Here is the caller graph for this function:

static void moa.cluster.CFCluster.addVectors ( double[]  a1,
double[]  a2 
) [static]

Adds the second array to the first array element by element.

The arrays must have the same length.

Parameters:
a1Vector to which the second vector is added.
a2Vector to be added. This vector does not change.

Definition at line 132 of file CFCluster.java.

Referenced by moa.cluster.CFCluster.add().

Here is the caller graph for this function:

double [] moa.cluster.CFCluster.getCenter ( ) [virtual]
Returns:
this kernels' center

Reimplemented from moa.cluster.SphereCluster.

Reimplemented in moa.clusterers.clustream.ClustreamKernel, moa.clusterers.clustree.ClusKernel, and moa.clusterers.denstream.MicroCluster.

Definition at line 88 of file CFCluster.java.

abstract CFCluster moa.cluster.CFCluster.getCF ( ) [pure virtual]
abstract double moa.cluster.CFCluster.getInclusionProbability ( Instance  instance) [pure virtual]

Returns the probability of the given point belonging to this cluster.

Parameters:
point
Returns:
a value between 0 and 1

Reimplemented from moa.cluster.SphereCluster.

Implemented in moa.clusterers.clustream.ClustreamKernel, moa.clusterers.clustree.ClusKernel, and moa.clusterers.denstream.MicroCluster.

double moa.cluster.CFCluster.getN ( )

Definition at line 122 of file CFCluster.java.

abstract double moa.cluster.CFCluster.getRadius ( ) [pure virtual]

See interface Cluster

Returns:
The radius of the cluster.

Reimplemented from moa.cluster.SphereCluster.

Implemented in moa.clusterers.clustream.ClustreamKernel, moa.clusterers.clustree.ClusKernel, and moa.clusterers.denstream.MicroCluster.

double moa.cluster.CFCluster.getWeight ( ) [virtual]

See interface Cluster

Returns:
The weight.
See also:
Cluster.getWeight()

Reimplemented from moa.cluster.SphereCluster.

Reimplemented in moa.clusterers.clustree.ClusKernel, and moa.clusterers.denstream.MicroCluster.

Definition at line 114 of file CFCluster.java.

Referenced by moa.clusterers.clustream.Clustream.trainOnInstanceImpl().

Here is the caller graph for this function:

void moa.cluster.CFCluster.setN ( double  N)

Definition at line 118 of file CFCluster.java.

Referenced by moa.clusterers.denstream.MicroCluster.getCF().

Here is the caller graph for this function:


Member Data Documentation


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