Class StatisticsOperator<T extends java.lang.Number & java.lang.Comparable<T>>

  • All Implemented Interfaces:
    java.util.function.Function<Multi<T>,​Multi<Statistic<T>>>

    public class StatisticsOperator<T extends java.lang.Number & java.lang.Comparable<T>>
    extends java.lang.Object
    implements java.util.function.Function<Multi<T>,​Multi<Statistic<T>>>
    Operator computing statistics based on the items emitted by the upstreams. For each items from upstream, it structure containing the:
    • Count (number of items emitted by the upstream)
    • Average (Mean)
    • Variance
    • Standard Deviation
    • Skewness
    • Kurtosis
    • Min
    • Max

    Computation following https://www.johndcook.com/blog/skewness_kurtosis/.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Multi<Statistic<T>> apply​(Multi<T> multi)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • StatisticsOperator

        public StatisticsOperator()
    • Method Detail

      • apply

        public Multi<Statistic<T>> apply​(Multi<T> multi)
        Specified by:
        apply in interface java.util.function.Function<Multi<T extends java.lang.Number & java.lang.Comparable<T>>,​Multi<Statistic<T extends java.lang.Number & java.lang.Comparable<T>>>>