Class ACERUtils
- java.lang.Object
-
- dev.nm.stat.evt.evd.univariate.fitting.acer.empirical.ACERUtils
-
public class ACERUtils extends Object
Utility functions used in ACER empirical analysis.
-
-
Constructor Summary
Constructors Constructor Description ACERUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double[]
computeWeightsByPeriodLength(double[][] observations)
Compute the weights for periods, proportional to the lengths of the periods.static double[]
extractPeaks(double[] data)
Extract peaks (values which are preceded and followed by values smaller than itself).
-
-
-
Method Detail
-
extractPeaks
public static double[] extractPeaks(double[] data)
Extract peaks (values which are preceded and followed by values smaller than itself).- Parameters:
data
- the data- Returns:
- the peaks
-
computeWeightsByPeriodLength
public static double[] computeWeightsByPeriodLength(double[][] observations)
Compute the weights for periods, proportional to the lengths of the periods. That is, \[ w_i = \frac{T_i}{\sum_i T_i} \]- Parameters:
observations
- the observations (one row for one period)- Returns:
- the period weights
-
-