Class PinotFourthMoment

  • All Implemented Interfaces:
    Serializable, Comparable<PinotFourthMoment>, org.apache.commons.math.stat.descriptive.StorelessUnivariateStatistic, org.apache.commons.math.stat.descriptive.UnivariateStatistic

    public class PinotFourthMoment
    extends org.apache.commons.math.stat.descriptive.moment.FourthMoment
    implements Comparable<PinotFourthMoment>
    A Comparable implementation of the Fourth Statistical Moment that uses the apache commons algorithm for computing it in one pass. It additionally supports serialization and deserialization methods, which is helpful for combining moments across servers.

    The commons implementation does not support parallel-computation, support for which is added in the combine(PinotFourthMoment) method inspired by Presto's implementation.

     Also See: Presto's Implementation
     
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.apache.commons.math.stat.descriptive.moment.FourthMoment

        m4
      • Fields inherited from class org.apache.commons.math.stat.descriptive.moment.ThirdMoment

        m3, nDevSq
      • Fields inherited from class org.apache.commons.math.stat.descriptive.moment.SecondMoment

        m2
      • Fields inherited from class org.apache.commons.math.stat.descriptive.moment.FirstMoment

        dev, m1, n, nDev
    • Method Summary

      Modifier and Type Method Description
      void combine​(long bN, double bM1, double bM2, double bM3, double bM4)  
      void combine​(PinotFourthMoment other)  
      int compareTo​(PinotFourthMoment o)  
      static PinotFourthMoment fromBytes​(byte[] bytes)  
      static PinotFourthMoment fromBytes​(ByteBuffer buff)  
      double kurtosis()  
      byte[] serialize()  
      double skew()  
      • Methods inherited from class org.apache.commons.math.stat.descriptive.moment.FourthMoment

        clear, copy, copy, getResult, increment
      • Methods inherited from class org.apache.commons.math.stat.descriptive.moment.ThirdMoment

        copy
      • Methods inherited from class org.apache.commons.math.stat.descriptive.moment.SecondMoment

        copy
      • Methods inherited from class org.apache.commons.math.stat.descriptive.moment.FirstMoment

        copy, getN
      • Methods inherited from class org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic

        equals, evaluate, evaluate, hashCode, incrementAll, incrementAll
      • Methods inherited from class org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic

        test, test