Class ACERUtils


  • public class ACERUtils
    extends Object
    Utility functions used in ACER empirical analysis.
    • Constructor Detail

      • ACERUtils

        public ACERUtils()
    • 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