Module io.smallrye.mutiny.math
Package io.smallrye.mutiny.math
Class StatisticsOperator<T extends java.lang.Number & java.lang.Comparable<T>>
- java.lang.Object
-
- io.smallrye.mutiny.math.StatisticsOperator<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/.
-
-
Constructor Summary
Constructors Constructor Description StatisticsOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Multi<Statistic<T>>apply(Multi<T> multi)
-