Class MathCommons
- java.lang.Object
-
- org.jenkinsci.plugins.additionalmetrics.MathCommons
-
public final class MathCommons extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Number>
OptionalDoubleaverage(List<T> list)
static <T extends Number>
OptionalDoublestandardDeviation(List<T> list)
-
-
-
Method Detail
-
average
public static <T extends Number> OptionalDouble average(List<T> list)
- Type Parameters:
T
- the type of elements in this list- Parameters:
list
- elements- Returns:
OptionalDouble
average of the list
-
standardDeviation
public static <T extends Number> OptionalDouble standardDeviation(List<T> list)
- Type Parameters:
T
- the type of elements in this dataset- Parameters:
list
- dataset- Returns:
OptionalDouble
standard deviation of the dataset
-
-