Here you can find the source of calculateMeanOfArrayListDouble(List
public static double calculateMeanOfArrayListDouble(List<Double> dList)
//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(); } }