MOA 12.03
Real Time Analytics for Data Streams
moa.cluster.SphereCluster Class Reference

A simple implementation of the Cluster interface representing spherical clusters. More...

Inheritance diagram for moa.cluster.SphereCluster:
Collaboration diagram for moa.cluster.SphereCluster:

List of all members.

Public Member Functions

 SphereCluster (double[] center, double radius)
 SphereCluster ()
 SphereCluster (double[] center, double radius, double weightedSize)
 SphereCluster (int dimensions, double radius, Random random)
 SphereCluster (List<?extends Instance > instances, int dimension)
double overlapRadiusDegree (SphereCluster other)
 Checks whether two SphereCluster overlap based on radius NOTE: overlapRadiusDegree only calculates the overlap based on the centers and the radi, so not the real overlap.
void combine (SphereCluster cluster)
void merge (SphereCluster cluster)
double[] getCenter ()
void setCenter (double[] center)
double getRadius ()
void setRadius (double radius)
double getWeight ()
 Returns the weight of this cluster, not neccessarily normalized.
void setWeight (double weight)
double getInclusionProbability (Instance instance)
 Returns the probability of the given point belonging to this cluster.
double getCenterDistance (Instance instance)
double getCenterDistance (SphereCluster other)
double getHullDistance (SphereCluster other)
boolean overlapSave (SphereCluster other)
 When a clusters looses points the new minimal bounding sphere can be partly outside of the originating cluster.
double[] getDistanceVector (Instance instance)
double[] getDistanceVector (SphereCluster other)
Instance sample (Random random)
 Samples this cluster by returning a point from inside it.

Protected Member Functions

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

Detailed Description

A simple implementation of the Cluster interface representing spherical clusters.

The inclusion probability is one inside the sphere and zero everywhere else.

Definition at line 35 of file SphereCluster.java.


Constructor & Destructor Documentation

moa.cluster.SphereCluster.SphereCluster ( double[]  center,
double  radius 
)

Definition at line 44 of file SphereCluster.java.

moa.cluster.SphereCluster.SphereCluster ( )

Definition at line 48 of file SphereCluster.java.

moa.cluster.SphereCluster.SphereCluster ( double[]  center,
double  radius,
double  weightedSize 
)

Definition at line 51 of file SphereCluster.java.

moa.cluster.SphereCluster.SphereCluster ( int  dimensions,
double  radius,
Random  random 
)

Definition at line 58 of file SphereCluster.java.

moa.cluster.SphereCluster.SphereCluster ( List<?extends Instance >  instances,
int  dimension 
)

Definition at line 72 of file SphereCluster.java.

Here is the call graph for this function:


Member Function Documentation

void moa.cluster.SphereCluster.combine ( SphereCluster  cluster)

Definition at line 142 of file SphereCluster.java.

Here is the call graph for this function:

double moa.cluster.SphereCluster.getCenterDistance ( Instance  instance)

Definition at line 245 of file SphereCluster.java.

Referenced by moa.cluster.SphereCluster.getInclusionProbability(), moa.clusterers.denstream.MicroCluster.getInclusionProbability(), and moa.cluster.SphereCluster.overlapSave().

Here is the call graph for this function:

Here is the caller graph for this function:

double moa.cluster.SphereCluster.getCenterDistance ( SphereCluster  other)

Definition at line 256 of file SphereCluster.java.

Here is the call graph for this function:

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

Reimplemented from moa.cluster.Cluster.

Reimplemented in moa.clusterers.clustream.ClustreamKernel.

Definition at line 369 of file SphereCluster.java.

Here is the call graph for this function:

double [] moa.cluster.SphereCluster.getDistanceVector ( SphereCluster  other)

Definition at line 314 of file SphereCluster.java.

Here is the call graph for this function:

double [] moa.cluster.SphereCluster.getDistanceVector ( Instance  instance)

Definition at line 310 of file SphereCluster.java.

Here is the call graph for this function:

double moa.cluster.SphereCluster.getHullDistance ( SphereCluster  other)

Definition at line 264 of file SphereCluster.java.

Here is the call graph for this function:

double moa.cluster.SphereCluster.getInclusionProbability ( Instance  instance) [virtual]

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

Parameters:
point
Returns:
a value between 0 and 1

Implements moa.cluster.Cluster.

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

Definition at line 238 of file SphereCluster.java.

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

Here is the call graph for this function:

Here is the caller graph for this function:

double moa.cluster.SphereCluster.getWeight ( ) [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

Implements moa.cluster.Cluster.

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

Definition at line 229 of file SphereCluster.java.

Referenced by moa.cluster.SphereCluster.combine(), and moa.cluster.SphereCluster.merge().

Here is the caller graph for this function:

void moa.cluster.SphereCluster.merge ( SphereCluster  cluster)

Definition at line 160 of file SphereCluster.java.

Here is the call graph for this function:

double moa.cluster.SphereCluster.overlapRadiusDegree ( SphereCluster  other)

Checks whether two SphereCluster overlap based on radius NOTE: overlapRadiusDegree only calculates the overlap based on the centers and the radi, so not the real overlap.

TODO: should we do this by MC to get the real overlap???

Parameters:
other
Returns:

Definition at line 104 of file SphereCluster.java.

Here is the call graph for this function:

boolean moa.cluster.SphereCluster.overlapSave ( SphereCluster  other)

When a clusters looses points the new minimal bounding sphere can be partly outside of the originating cluster.

If a another cluster is right next to the original cluster (without overlapping), the new cluster can be overlapping with this second cluster. OverlapSave will tell you if the current cluster can degenerate so much that it overlaps with cluster 'other'

Parameters:
otherthe potentially overlapping cluster
Returns:
true if cluster can potentially overlap

Definition at line 288 of file SphereCluster.java.

Here is the call graph for this function:

Instance moa.cluster.SphereCluster.sample ( Random  random) [virtual]

Samples this cluster by returning a point from inside it.

Parameters:
randoma random number source
Returns:
a point that lies inside this cluster

Implements moa.cluster.Cluster.

Definition at line 332 of file SphereCluster.java.

Here is the call graph for this function:

void moa.cluster.SphereCluster.setCenter ( double[]  center)

Definition at line 216 of file SphereCluster.java.

Referenced by moa.cluster.SphereCluster.merge().

Here is the caller graph for this function:

void moa.cluster.SphereCluster.setRadius ( double  radius)

Definition at line 224 of file SphereCluster.java.

Referenced by moa.cluster.SphereCluster.merge().

Here is the caller graph for this function:

void moa.cluster.SphereCluster.setWeight ( double  weight)

Definition at line 233 of file SphereCluster.java.

Referenced by moa.cluster.Clustering.Clustering(), moa.clusterers.denstream.MicroCluster.copy(), and moa.cluster.SphereCluster.merge().

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