Package pamMaths
Class Mean
java.lang.Object
pamMaths.Mean
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Mean
public Mean()
-
-
Method Details
-
getMean
public static double getMean(double[] data) Calculate the mean of all data in an array- Parameters:
data
-- Returns:
- mean of data
-
getMean
public static double getMean(double[] data, int n) Calculate the mean of n elements in the array- Parameters:
data
-n
-- Returns:
- mean of first n points
-