Java Array Average average(double... args)

Here you can find the source of average(double... args)

Description

average

License

LGPL

Declaration

public static double average(double... args) 

Method Source Code

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

public class Main {
    public static double average(double... args) {
        double total = 0D;
        for (double value : args) {
            total += value;//w  w w.  j  ava  2  s  .c o  m
        }
        return total / args.length;
    }
}

Related

  1. average(Double sum, Double size)
  2. average(double values[])
  3. average(double x, double y)
  4. average(double x1, double x2)
  5. average(double... vals)
  6. average(double[] a)
  7. average(double[] a)
  8. average(Double[] arr)