com.yahoo.egads.utilities
Class IdentifiedDoublePoint
- java.lang.Object
-
- org.apache.commons.math3.ml.clustering.DoublePoint
-
- com.yahoo.egads.utilities.IdentifiedDoublePoint
-
- All Implemented Interfaces:
- java.io.Serializable, org.apache.commons.math3.ml.clustering.Clusterable
public class IdentifiedDoublePoint extends org.apache.commons.math3.ml.clustering.DoublePointA simple implementation ofClusterablefor points with double coordinates, with an added id.- Since:
- 3.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description IdentifiedDoublePoint(double[] point, int id)Build an instance wrapping an double array.IdentifiedDoublePoint(int[] point, int id)Build an instance wrapping an integer array.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetId()
-
-
-
Constructor Detail
-
IdentifiedDoublePoint
public IdentifiedDoublePoint(double[] point, int id)Build an instance wrapping an double array.The wrapped array is referenced, it is not copied.
- Parameters:
point- the n-dimensional point in double space
-
IdentifiedDoublePoint
public IdentifiedDoublePoint(int[] point, int id)Build an instance wrapping an integer array.The wrapped array is copied to an internal double array.
- Parameters:
point- the n-dimensional point in integer space
-
-
DataMelt 3.0 © DataMelt by jWork.ORG