Top Description Methods
org.apache.commons.math3.stat.clustering

public Interface Clusterable<T>

Known Direct Implementers
org.apache.commons.math3.stat.clustering.EuclideanDoublePoint, org.apache.commons.math3.stat.clustering.EuclideanIntegerPoint
Annotations
@Deprecated
Type Parameters
<T>
the type of point that can be clustered
Imports
java.util.Collection

Deprecated

As of 3.2 (to be removed in 4.0), use org.apache.commons.math3.ml.clustering.Clusterable instead

Interface for points that can be clustered together.
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the centroid of the given Collection of Points
centroidOf
(Collection<T>
the Collection of points to compute the centroid of
p
)

Returns the centroid of the given Collection of points.

public double

Returns:

the distance from the given point
distanceFrom
(T
the point to compute the distance from
p
)

Returns the distance from the given point.

Method Detail

centroidOfback to summary
public T centroidOf(Collection<T> p)

Returns the centroid of the given Collection of points.

Parameters
p:Collection<T>

the Collection of points to compute the centroid of

Returns:T

the centroid of the given Collection of Points

distanceFromback to summary
public double distanceFrom(T p)

Returns the distance from the given point.

Parameters
p:T

the point to compute the distance from

Returns:double

the distance from the given point