public class ClusterAnalyzer extends Object
r
.
The clusters of exceedances are identified as follows:
r
consecutive values fall below
(or are equal to) the threshold,evd::clusters
.Constructor and Description |
---|
ClusterAnalyzer(double threshold)
Create an instance with the given threshold value and default interval length value of 1.
|
ClusterAnalyzer(double threshold,
int intervalLength)
Create an instance with the given threshold and clustering interval length.
|
Modifier and Type | Method and Description |
---|---|
Clusters |
getClusters(double[] observations)
Count clusters from the given observations.
|
int |
getIntervalLength()
Get the clustering interval length.
|
double |
getThreshold()
Get the threshold for exceedance.
|
public ClusterAnalyzer(double threshold)
threshold
- the threshold valuepublic ClusterAnalyzer(double threshold, int intervalLength)
threshold
- the threshold valueintervalLength
- the clustering interval length r
public double getThreshold()
public int getIntervalLength()
public Clusters getClusters(double[] observations)
observations
- the observation to be analyzedCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.