Top Description Fields Constructors Methods
org.apache.commons.math3.ml.clustering

public Class Cluster<T extends Clusterable>

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
org.apache.commons.math3.ml.clustering.CentroidCluster
Type Parameters
<T>
the type of points that can be clustered
Imports
java.io.Serializable, java.util.ArrayList, .List

Cluster holding a set of Clusterable points.
Since
3.2

Field Summary

Modifier and TypeField and Description
private final List<T>
points

The points contained in this cluster.

private static final long
serialVersionUID

Serializable version identifier.

Constructor Summary

AccessConstructor and Description
public
Cluster()

Build a cluster centered at a specified point.

Method Summary

Modifier and TypeMethod and Description
public void
addPoint(final T
point to add
point
)

Add a point to this cluster.

public List<T>

Returns:

points contained in the cluster
getPoints
()

Get the points contained in the cluster.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pointsback to summary
private final List<T> points

The points contained in this cluster.

serialVersionUIDback to summary
private static final long serialVersionUID

Serializable version identifier.

Constructor Detail

Clusterback to summary
public Cluster()

Build a cluster centered at a specified point.

Method Detail

addPointback to summary
public void addPoint(final T point)

Add a point to this cluster.

Parameters
point:T

point to add

getPointsback to summary
public List<T> getPoints()

Get the points contained in the cluster.

Returns:List<T>

points contained in the cluster