MOA 12.03
Real Time Analytics for Data Streams
moa.clusterers.streamkm.TreeCoreset.treeNode Class Reference

datastructure representing a node within a tree More...

Collaboration diagram for moa.clusterers.streamkm.TreeCoreset.treeNode:

List of all members.

Public Member Functions

 treeNode (int n, Point[] points, Point centre, treeNode parent)
 treeNode (Point[] setA, Point[] setB, int n_1, int n_2, Point centre, int centreIndex)
 initalizes root as a treenode with the union of setA and setB as pointset and centre as centre

Package Functions

void free ()
double treeNodeTargetFunctionValue ()
 Computes the target function value of the n points of the treenode.

Package Attributes

int n
Point[] points
Point centre
treeNode lc
treeNode rc
treeNode parent
double cost

Detailed Description

datastructure representing a node within a tree

Definition at line 13 of file TreeCoreset.java.


Constructor & Destructor Documentation

moa.clusterers.streamkm.TreeCoreset.treeNode.treeNode ( int  n,
Point[]  points,
Point  centre,
treeNode  parent 
)

Definition at line 43 of file TreeCoreset.java.

Here is the call graph for this function:

moa.clusterers.streamkm.TreeCoreset.treeNode.treeNode ( Point[]  setA,
Point[]  setB,
int  n_1,
int  n_2,
Point  centre,
int  centreIndex 
)

initalizes root as a treenode with the union of setA and setB as pointset and centre as centre

Definition at line 56 of file TreeCoreset.java.

Here is the call graph for this function:


Member Function Documentation

void moa.clusterers.streamkm.TreeCoreset.treeNode.free ( ) [package]

Definition at line 35 of file TreeCoreset.java.

Referenced by moa.clusterers.streamkm.TreeCoreset.freeTree().

Here is the caller graph for this function:

double moa.clusterers.streamkm.TreeCoreset.treeNode.treeNodeTargetFunctionValue ( ) [package]

Computes the target function value of the n points of the treenode.

Differs from the function "targetFunctionValue" in three things:

1. only the centre of the treenode is used as a centre

2. works on arrays of pointers instead on arrays of points

3. stores the cost in the treenode

Definition at line 95 of file TreeCoreset.java.

Referenced by moa.clusterers.streamkm.TreeCoreset.treeNode.treeNode().

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