Class Average
java.lang.Object
com.djrapitops.plan.utilities.analysis.Average
Utility for averaging data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(double value) Add a new entry and check if save should be done.void
addNonNull
(Double value) void
addPositive
(long[] values, UnaryOperator<Long> mappingFunction) double
-
Constructor Details
-
Average
public Average()
-
-
Method Details
-
add
public void add(double value) Add a new entry and check if save should be done.- Parameters:
value
- TPS value
-
getAverageAndReset
public double getAverageAndReset() -
addNonNull
-
addPositive
-