Package org.hipparchus.stat.descriptive
Interface AggregatableStatistic<T>
- Type Parameters:
T- the type of statistic
- All Known Implementing Classes:
GeometricMean,Max,Mean,Min,Product,RandomPercentile,SecondMoment,StreamingStatistics,Sum,SumOfLogs,SumOfSquares,Variance
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An interface for statistics that can aggregate results.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidAggregates the results from the provided instances into this instance.voidAggregates the provided instance into this instance.default voidAggregates the results from the provided instances into this instance.
-
Method Details
-
aggregate
Aggregates the provided instance into this instance.This method can be used to combine statistics computed over partitions or subsamples - i.e., the value of this instance after this operation should be the same as if a single statistic would have been applied over the combined dataset.
- Parameters:
other- the instance to aggregate into this instance- Throws:
NullArgumentException- if the input is null
-
aggregate
Aggregates the results from the provided instances into this instance.This method can be used to combine statistics computed over partitions or subsamples - i.e., the value of this instance after this operation should be the same as if a single statistic would have been applied over the combined dataset.
- Parameters:
others- the other instances to aggregate into this instance- Throws:
NullArgumentException- if either others or any instance is null
-
aggregate
Aggregates the results from the provided instances into this instance.This method can be used to combine statistics computed over partitions or subsamples - i.e., the value of this instance after this operation should be the same as if a single statistic would have been applied over the combined dataset.
- Parameters:
others- the other instances to aggregate into this instance- Throws:
NullArgumentException- if either others or any instance is null
-