Class EuclideanIntegerPoint
java.lang.Object
org.apache.commons.math3.stat.clustering.EuclideanIntegerPoint
- All Implemented Interfaces:
Serializable, Clusterable<EuclideanIntegerPoint>
@Deprecated
public class EuclideanIntegerPoint
extends Object
implements Clusterable<EuclideanIntegerPoint>, Serializable
Deprecated.
A simple implementation of
Clusterable for points with integer coordinates.- Since:
- 2.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]Deprecated.Point coordinates.private static final longDeprecated.Serializable version identifier. -
Constructor Summary
ConstructorsConstructorDescriptionEuclideanIntegerPoint(int[] point) Deprecated.Build an instance wrapping an integer array. -
Method Summary
Modifier and TypeMethodDescriptioncentroidOf(Collection<EuclideanIntegerPoint> points) Deprecated.Returns the centroid of the given Collection of points.doubleDeprecated.Returns the distance from the given point.booleanDeprecated.int[]getPoint()Deprecated.Get the n-dimensional point in integer space.inthashCode()Deprecated.toString()Deprecated.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.Serializable version identifier.- See Also:
-
point
private final int[] pointDeprecated.Point coordinates.
-
-
Constructor Details
-
EuclideanIntegerPoint
public EuclideanIntegerPoint(int[] point) Deprecated.Build an instance wrapping an integer array.The wrapped array is referenced, it is not copied.
- Parameters:
point- the n-dimensional point in integer space
-
-
Method Details
-
getPoint
public int[] getPoint()Deprecated.Get the n-dimensional point in integer space.- Returns:
- a reference (not a copy!) to the wrapped array
-
distanceFrom
Deprecated.Returns the distance from the given point.- Specified by:
distanceFromin interfaceClusterable<EuclideanIntegerPoint>- Parameters:
p- the point to compute the distance from- Returns:
- the distance from the given point
-
centroidOf
Deprecated.Returns the centroid of the given Collection of points.- Specified by:
centroidOfin interfaceClusterable<EuclideanIntegerPoint>- Parameters:
points- the Collection of points to compute the centroid of- Returns:
- the centroid of the given Collection of Points
-
equals
-
hashCode
-
toString
-
DoublePointinstead