Class Average
java.lang.Object
com.djrapitops.plan.utilities.analysis.Average
Utility for averaging data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(double value) Add a new entry and check if save should be done.voidaddNonNull(Double value) voidaddPositive(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
-