Clusterable (Apache Commons Math 3.3 API)

org.apache.commons.math3.stat.clustering

## Interface Clusterable<T>

- Type Parameters:
    `T` - the type of point that can be clustered
  All Known Implementing Classes:
    EuclideanDoublePoint, EuclideanIntegerPoint

  Deprecated.
  As of 3.2 (to be removed in 4.0), use `Clusterable` instead

      @Deprecated
      public interface Clusterable<T>

  Interface for points that can be clustered together.
  Since:
    2.0
  Version:
    $Id: Clusterable.java 1461871 2013-03-27 22:01:25Z tn $

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `centroidOf(Collection<T> p)` Deprecated. Returns the centroid of the given Collection of points.
    `double` | `distanceFrom(T p)` Deprecated. Returns the distance from the given point.

- - ### Method Detail

    - #### distanceFrom

          double distanceFrom(T p)

      Deprecated.
      Returns the distance from the given point.
      Parameters:
        `p` - the point to compute the distance from
      Returns:
        the distance from the given point

    - #### centroidOf

          T centroidOf(Collection<T> p)

      Deprecated.
      Returns the centroid of the given Collection of points.
      Parameters:
        `p` - the Collection of points to compute the centroid of
      Returns:
        the centroid of the given Collection of Points

Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.