Class Cluster<T extends Clusterable>
- java.lang.Object
-
- org.apache.commons.math3.ml.clustering.Cluster<T>
-
- Type Parameters:
T
- the type of points that can be clustered
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CentroidCluster
public class Cluster<T extends Clusterable> extends java.lang.Object implements java.io.Serializable
Cluster holding a set ofClusterable
points.- Since:
- 3.2
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<T>
points
The points contained in this cluster.private static long
serialVersionUID
Serializable version identifier.
-
Constructor Summary
Constructors Constructor Description Cluster()
Build a cluster centered at a specified point.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPoint(T point)
Add a point to this cluster.java.util.List<T>
getPoints()
Get the points contained in the cluster.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serializable version identifier.- See Also:
- Constant Field Values
-
points
private final java.util.List<T extends Clusterable> points
The points contained in this cluster.
-
-