Package dev.nm.stat.evt.cluster
Class Clusters
- java.lang.Object
-
- dev.nm.stat.evt.cluster.Clusters
-
public class Clusters extends Object
Store cluster information obtained by cluster analysis.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Clusters.Cluster
Define the beginning and ending indices (inclusively) of a cluster.
-
Constructor Summary
Constructors Constructor Description Clusters(double[] observations, List<Clusters.Cluster> clusters, int nExceedences)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAverageClusterSize()
Get the average cluster size.int
getClusterCount()
Get the number of clusters.double[]
getClusterMaxima()
Get an array of cluster maxima.List<Clusters.Cluster>
getClusters()
Get the list of clusters.int
getExceedenceCount()
Get the number of observations that is greater than a given threshold.
-
-
-
Constructor Detail
-
Clusters
public Clusters(double[] observations, List<Clusters.Cluster> clusters, int nExceedences)
-
-
Method Detail
-
getExceedenceCount
public int getExceedenceCount()
Get the number of observations that is greater than a given threshold.- Returns:
- the number of exceedences
-
getClusterCount
public int getClusterCount()
Get the number of clusters.- Returns:
- the number of clusters
-
getAverageClusterSize
public double getAverageClusterSize()
Get the average cluster size.- Returns:
- the average cluster size.
-
getClusters
public List<Clusters.Cluster> getClusters()
Get the list of clusters.- Returns:
- the cluster list
-
getClusterMaxima
public double[] getClusterMaxima()
Get an array of cluster maxima.- Returns:
- maxima of the clusters
-
-