public class StreamObj extends Object implements DistanceFunctions.EuclideanCoordinate, Comparable<StreamObj>
Constructor and Description |
---|
StreamObj(double... values) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(StreamObj that) |
int |
dimensions()
The number of dimensions.
|
boolean |
equals(Object obj) |
double |
get(int index)
A method to access the
index -th component of the coordinate. |
int |
hashCode() |
public int dimensions()
DistanceFunctions.EuclideanCoordinate
dimensions
in interface DistanceFunctions.EuclideanCoordinate
public double get(int index)
DistanceFunctions.EuclideanCoordinate
index
-th component of the coordinate.get
in interface DistanceFunctions.EuclideanCoordinate
index
- The index of the component. Must be less than DistanceFunctions.EuclideanCoordinate.dimensions()
.public int compareTo(StreamObj that)
compareTo
in interface Comparable<StreamObj>
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.