Java List Mean mean(List values)

Here you can find the source of mean(List values)

Description

mean

License

Open Source License

Declaration

public static double mean(List<Double> values) 

Method Source Code

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

import java.util.List;

public class Main {
    public static double mean(List<Double> values) {
        double sum = 0;
        for (Double val : values) {
            sum += val;
        }/*w  w  w .  j a v a2 s  .  c  o m*/
        return sum / values.size();
    }
}

Related

  1. mean(List nums, int start, int size)
  2. mean(List data)
  3. mean(List list)
  4. mean(List list)
  5. mean(List vals)
  6. mean(List values)
  7. mean(List values)
  8. mean(List numbers)
  9. meanAbsolute(List vector)