public class DoubleArrayStatsUtils extends Object
| Constructor and Description | 
|---|
| DoubleArrayStatsUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static double | mean(double[] arr)Find the mean of a single dimensional double array. | 
| static double | mean(double[][] arr)Calculate the mean of a two dimensional double array. | 
| static double | median(double[] arr)Calculate the median of the given array. | 
| static double | median(double[] arr,
      int start,
      int stop)Calculate the median of the given sub-array. | 
| static double | std(double[] arr)Calculate the sample standard deviation of a 1D array. | 
| static double | std(double[][] arr)Calculate the sample standard deviation of a 2D array. | 
| static double | sum(double[] arr)Calculate the sum of a 1D array. | 
| static double | sum(double[][] arr)Calculate the sum of a 2D array. | 
| static double | sumAbs(double[] arr)Calculate the sum the absolute values of a 1D array. | 
| static double | sumAbs(double[][] arr)Calculate the sum of the absolute values of a 2D array. | 
| static double | sumSq(double[] arr)Calculate the sum the squared values of a 1D array. | 
| static double | sumSq(double[][] arr)Calculate the sum of the squared values of a 2D array. | 
| static double | var(double[] arr)Calculate the sample variance of a one dimensional double array. | 
| static double | var(double[][] arr)Calculate the sample variance of a one dimensional double array. | 
public DoubleArrayStatsUtils()
public static double mean(double[] arr)
arr - public static double mean(double[][] arr)
arr - public static double var(double[] arr)
arr - public static double var(double[][] arr)
arr - public static double std(double[][] arr)
var(double[][]) and does a Math.sqrt.arr - public static double std(double[] arr)
var(double[]) and does a Math.sqrt.arr - public static double sum(double[][] arr)
arr - public static double sum(double[] arr)
arr - public static double sumSq(double[][] arr)
arr - public static double sumSq(double[] arr)
arr - public static double sumAbs(double[][] arr)
arr - public static double sumAbs(double[] arr)
arr - public static double median(double[] arr)
ArrayUtils.quickSelect(double[], int)).arr - the arraypublic static double median(double[] arr, int start, int stop)
ArrayUtils.quickSelect(double[], int, int, int)).arr - the arraystart - starting point in the array (inclusive)stop - stopping point in the array (exclusive)