Package jsl.utilities.statistic
Interface CollectorIfc
-
- All Known Implementing Classes:
AbstractCollector,AbstractStatistic,AntitheticStatistic,BatchStatistic,CachedHistogram,ExceedanceEstimator,Histogram,StandardizedTimeSeriesStatistic,Statistic,WeightedStatistic
public interface CollectorIfcThis interface represents a general set of methods for data collection. The collect() method takes in the supplied data and collects it in some manner as specified by the collector.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcollect(boolean value)Collects statistics on the boolean value true = 1.0, false = 0.0voidcollect(double value)Collect on the supplied valuedefault voidcollect(double[] values)Collects statistics on the values in the supplied array.default voidcollect(GetValueIfc v)Collects statistics on the values returned by the supplied GetValueIfcvoidreset()Resets the collector as if no observations had been collected.
-
-
-
Method Detail
-
collect
default void collect(GetValueIfc v)
Collects statistics on the values returned by the supplied GetValueIfc- Parameters:
v- the object that returns the value to be collected
-
collect
default void collect(boolean value)
Collects statistics on the boolean value true = 1.0, false = 0.0- Parameters:
value- the value to collect on
-
collect
void collect(double value)
Collect on the supplied value- Parameters:
value- a double representing the observation
-
collect
default void collect(double[] values)
Collects statistics on the values in the supplied array.- Parameters:
values- the values, must not be null
-
reset
void reset()
Resets the collector as if no observations had been collected.
-
-