Package moa.clusterers.outliers.MCOD
Class StreamObj
- java.lang.Object
-
- moa.clusterers.outliers.MCOD.StreamObj
-
- All Implemented Interfaces:
Comparable<StreamObj>
,DistanceFunctions.EuclideanCoordinate
public class StreamObj extends Object implements DistanceFunctions.EuclideanCoordinate, Comparable<StreamObj>
-
-
Constructor Summary
Constructors Constructor Description StreamObj(double... values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(StreamObj 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
hashCode()
-
-
-
Method Detail
-
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(StreamObj that)
- Specified by:
compareTo
in interfaceComparable<StreamObj>
-
-