Java Utililty Methods List std

List of utility methods to do List std

Description

The list of methods to do List std are organized into topic(s).

Method

doublestd(List iNumbers)
std
double result = 0;
double mu = average(iNumbers);
for (Double number : iNumbers)
    result += Math.pow(number - mu, 2);
result /= iNumbers.size();
return Math.sqrt(result);
Doublestd(List vector, Double avg)
std
Double accum = 0.0;
Double dev = 0.0;
Double accum2 = 0.0;
Double len = (double) vector.size();
for (Double float1 : vector) {
    dev = float1 - avg;
    accum += dev * dev;
    accum2 += dev;
...
doublestdDev(List nums)
Get the standard deviation.
if (nums == null || nums.size() == 0) {
    throw new IllegalArgumentException();
return stdDev(nums, 0, nums.size());
doublestddev(List observations)
Calculate sample deviation
if (observations.size() == 1) {
    return 0.0;
double mean = 0.0;
for (Double d : observations) {
    mean += d;
mean = mean / observations.size();
...
doublestDev(final List list)
Gets the standard deviation.
return Math.sqrt(variance(list));
doublestdev(List values)
stdev
return stdev(values, mean(values));
DoublestdInt(List elements)
std Int
List<Double> doubles = new ArrayList<Double>(elements.size());
for (Integer n : elements) {
    doubles.add(new Double(n));
return std(doubles);
doublevarianceDouble(List list, boolean populationStandardDeviation)
Variance double.
double mean = meanDouble(list);
double variance = 0;
for (int i = 0; i < list.size(); i++) {
    double a = Math.pow(list.get(i) - mean, 2);
    variance += a;
if (populationStandardDeviation) {
    return variance / list.size();
...