|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.ml.clustering.DoublePoint
public class DoublePoint
A simple implementation of Clusterable
for points with double coordinates.
Field Summary | |
---|---|
private double[] |
point
Point coordinates. |
private static long |
serialVersionUID
Serializable version identifier. |
Constructor Summary | |
---|---|
DoublePoint(double[] point)
Build an instance wrapping an double array. |
|
DoublePoint(int[] point)
Build an instance wrapping an integer array. |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
double[] |
getPoint()
Gets the n-dimensional point. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final double[] point
Constructor Detail |
---|
public DoublePoint(double[] point)
The wrapped array is referenced, it is not copied.
point
- the n-dimensional point in double spacepublic DoublePoint(int[] point)
The wrapped array is copied to an internal double array.
point
- the n-dimensional point in integer spaceMethod Detail |
---|
public double[] getPoint()
getPoint
in interface Clusterable
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |