public class DataPoint
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
DataPoint(int index,
org.nd4j.linalg.api.ndarray.INDArray point) |
DataPoint(int index,
org.nd4j.linalg.api.ndarray.INDArray point,
boolean invert) |
DataPoint(int index,
org.nd4j.linalg.api.ndarray.INDArray point,
java.lang.String functionName) |
DataPoint(int index,
org.nd4j.linalg.api.ndarray.INDArray point,
java.lang.String functionName,
boolean invert) |
Modifier and Type | Method and Description |
---|---|
double |
distance(DataPoint point)
Euclidean distance
|
boolean |
equals(java.lang.Object o) |
int |
getD() |
int |
getIndex() |
org.nd4j.linalg.api.ndarray.INDArray |
getPoint() |
int |
hashCode() |
void |
setD(int d) |
void |
setIndex(int index) |
void |
setPoint(org.nd4j.linalg.api.ndarray.INDArray point) |
public DataPoint(int index, org.nd4j.linalg.api.ndarray.INDArray point, boolean invert)
public DataPoint(int index, org.nd4j.linalg.api.ndarray.INDArray point, java.lang.String functionName, boolean invert)
public DataPoint(int index, org.nd4j.linalg.api.ndarray.INDArray point)
public DataPoint(int index, org.nd4j.linalg.api.ndarray.INDArray point, java.lang.String functionName)
public double distance(DataPoint point)
point
- the distance from this point to the given pointpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int getD()
public void setD(int d)
public int getIndex()
public void setIndex(int index)
public org.nd4j.linalg.api.ndarray.INDArray getPoint()
public void setPoint(org.nd4j.linalg.api.ndarray.INDArray point)