|
||||||||||
| 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.
| 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 |
| 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 space| Method Detail |
|---|
public double[] getPoint()
getPoint in interface Clusterablepublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||