Java List Mean getMean(List list)

Here you can find the source of getMean(List list)

Description

get Mean

License

Open Source License

Declaration

public static double getMean(List<Double> list) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {
    public static double getMean(List<Double> list) {
        double sum = 0.0;
        for (double value : list) {
            sum += value;//from  ww  w.  ja  v  a 2  s .co  m
        }
        return sum / list.size();
    }
}

Related

  1. calculateStDev(List values, double mean)
  2. computeMean(List fs)
  3. geometricMean(List vals, double replacement)
  4. getHMean(List harray)
  5. getMean(List data)
  6. getStandardDeviation(double meanValue, List values)
  7. getStandardDeviation(List doubles, Double mean)
  8. getStandardDeviationOfMean(List doubles)
  9. mean(double[] list)