public class MVS extends Object
Constructor and Description |
---|
MVS()
Create a new MVS instance
|
Modifier and Type | Method and Description |
---|---|
void |
calculate(double[] data)
Calculate the mean, standard deviation and variance of a set
|
void |
clear()
Clear internal calculations
|
double |
mean()
Retrieve the mean from the last call to calculate()
|
int |
size()
Retrieve the number of values used in the last call to calculate()
|
double |
stdev()
Retrieve the standard deviation from the last call to calculate()
|
double |
variance()
Retrieve the variance from the last call to calculate()
|
public void clear()
public void calculate(double[] data)
data
- data to calculatepublic int size()
public double mean()
public double variance()
public double stdev()
Copyright © 2017. All rights reserved.