Package moa.clusterers.outliers.MCOD
Class MicroCluster
- java.lang.Object
-
- moa.clusterers.outliers.MCOD.MicroCluster
-
- All Implemented Interfaces:
Comparable<MicroCluster>
,DistanceFunctions.EuclideanCoordinate
public class MicroCluster extends Object implements DistanceFunctions.EuclideanCoordinate, Comparable<MicroCluster>
-
-
Field Summary
Fields Modifier and Type Field Description ISBIndex.ISBNode
mcc
ArrayList<ISBIndex.ISBNode>
nodes
-
Constructor Summary
Constructors Constructor Description MicroCluster(ISBIndex.ISBNode mcc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
AddNode(ISBIndex.ISBNode node)
int
compareTo(MicroCluster that)
int
dimensions()
The number of dimensions.boolean
equals(Object obj)
double
get(int index)
A method to access theindex
-th component of the coordinate.int
GetNodesCount()
void
RemoveNode(ISBIndex.ISBNode node)
-
-
-
Field Detail
-
mcc
public ISBIndex.ISBNode mcc
-
nodes
public ArrayList<ISBIndex.ISBNode> nodes
-
-
Constructor Detail
-
MicroCluster
public MicroCluster(ISBIndex.ISBNode mcc)
-
-
Method Detail
-
AddNode
public void AddNode(ISBIndex.ISBNode node)
-
RemoveNode
public void RemoveNode(ISBIndex.ISBNode node)
-
GetNodesCount
public int GetNodesCount()
-
dimensions
public int dimensions()
Description copied from interface:DistanceFunctions.EuclideanCoordinate
The number of dimensions.- Specified by:
dimensions
in interfaceDistanceFunctions.EuclideanCoordinate
-
get
public double get(int index)
Description copied from interface:DistanceFunctions.EuclideanCoordinate
A method to access theindex
-th component of the coordinate.- Specified by:
get
in interfaceDistanceFunctions.EuclideanCoordinate
- Parameters:
index
- The index of the component. Must be less thanDistanceFunctions.EuclideanCoordinate.dimensions()
.
-
compareTo
public int compareTo(MicroCluster that)
- Specified by:
compareTo
in interfaceComparable<MicroCluster>
-
-