public class Stats
extends java.lang.Object
Constructor and Description |
---|
Stats() |
Modifier and Type | Method and Description |
---|---|
static double |
max(Dataset dataset)
Returns the maximum of the data
|
static double |
max(double[] data)
Returns the maximum of the data
|
static double |
mean(Dataset dataset)
Calculates the mean value of the input
|
static double |
mean(double[] data)
Calculates the mean of the input data
|
static double |
min(Dataset dataset)
Returns the minimum of the data
|
static double |
min(double[] data)
Returns the minimum of the data
|
static double |
stddev(Dataset dataset)
Calculates the standard deviation of the data
|
static double |
stddev(double[] data)
Calculates the standard deviation of the data
|
static double |
variance(Dataset dataset)
Calculates the variance of the input data
|
static double |
variance(double[] data)
Calculates the variance of the input data
|
public static double mean(double[] data)
data
- elementsjava.lang.IllegalArgumentException
- if input array was nullpublic static double mean(Dataset dataset)
dataset
- inputjava.lang.IllegalArgumentException
- if input array was nullpublic static double variance(double[] data)
data
- elementsjava.lang.IllegalArgumentException
- if input array was nullpublic static double variance(Dataset dataset)
dataset
- elementsjava.lang.IllegalArgumentException
- if input array was nullpublic static double stddev(double[] data)
data
- input datajava.lang.IllegalArgumentException
- if input array was nullpublic static double stddev(Dataset dataset)
dataset
- input datajava.lang.IllegalArgumentException
- if input array was nullpublic static double min(double[] data)
data
- array to examinepublic static double min(Dataset dataset)
dataset
- Dataset to examinepublic static double max(double[] data)
data
- array to examinepublic static double max(Dataset dataset)
dataset
- Dataset to examine