Java mean calculateMeanOfArrayListDouble(List dList)

Here you can find the source of calculateMeanOfArrayListDouble(List dList)

Description

calculate Mean Of Array List Double

License

LGPL

Declaration

public static double calculateMeanOfArrayListDouble(List<Double> dList) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.util.List;

public class Main {
    public static double calculateMeanOfArrayListDouble(List<Double> dList) {

        double sum = 0;
        for (double x : dList) {
            sum += x;/*from   ww w  .j a v a 2s  .  co  m*/
        }

        return sum / dList.size();
    }
}

Related

  1. adjustVariance(double[] x, double newVariance, double currentMean)
  2. getMean(ArrayList> lists)
  3. getMean(ArrayList beats)
  4. getMean(final Integer[] values)
  5. getMeanValue(ArrayList values)