Class EuclideanDoublePoint
- java.lang.Object
-
- org.apache.commons.math3.stat.clustering.EuclideanDoublePoint
-
- All Implemented Interfaces:
java.io.Serializable,Clusterable<EuclideanDoublePoint>
@Deprecated public class EuclideanDoublePoint extends java.lang.Object implements Clusterable<EuclideanDoublePoint>, java.io.Serializable
Deprecated.As of 3.2 (to be removed in 4.0), useDoublePointinsteadA simple implementation ofClusterablefor points with double coordinates.- Since:
- 3.1
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private double[]pointDeprecated.Point coordinates.private static longserialVersionUIDDeprecated.Serializable version identifier.
-
Constructor Summary
Constructors Constructor Description EuclideanDoublePoint(double[] point)Deprecated.Build an instance wrapping an integer array.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description EuclideanDoublePointcentroidOf(java.util.Collection<EuclideanDoublePoint> points)Deprecated.Returns the centroid of the given Collection of points.doubledistanceFrom(EuclideanDoublePoint p)Deprecated.Returns the distance from the given point.booleanequals(java.lang.Object other)Deprecated.double[]getPoint()Deprecated.Get the n-dimensional point in integer space.inthashCode()Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Deprecated.Serializable version identifier.- See Also:
- Constant Field Values
-
point
private final double[] point
Deprecated.Point coordinates.
-
-
Method Detail
-
centroidOf
public EuclideanDoublePoint centroidOf(java.util.Collection<EuclideanDoublePoint> points)
Deprecated.Returns the centroid of the given Collection of points.- Specified by:
centroidOfin interfaceClusterable<EuclideanDoublePoint>- Parameters:
points- the Collection of points to compute the centroid of- Returns:
- the centroid of the given Collection of Points
-
distanceFrom
public double distanceFrom(EuclideanDoublePoint p)
Deprecated.Returns the distance from the given point.- Specified by:
distanceFromin interfaceClusterable<EuclideanDoublePoint>- Parameters:
p- the point to compute the distance from- Returns:
- the distance from the given point
-
equals
public boolean equals(java.lang.Object other)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
getPoint
public double[] getPoint()
Deprecated.Get the n-dimensional point in integer space.- Returns:
- a reference (not a copy!) to the wrapped array
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-