Java mean mean(double[] nums)

Here you can find the source of mean(double[] nums)

Description

mean

License

LGPL

Declaration

public static double mean(double[] nums) 

Method Source Code

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

public class Main {
    public static double mean(double[] nums) {
        double s = 0;

        for (double n : nums) {
            s += n;/*  w ww .  ja va 2  s.c o m*/
        }
        return s / nums.length;
    }
}

Related

  1. mean(Double[] array)
  2. mean(double[] data)
  3. mean(double[] data)
  4. mean(double[] doubleArray)
  5. mean(double[] list)
  6. mean(double[] samples)
  7. mean(double[] series)
  8. mean(double[] v)
  9. mean(double[] values)