Java mean mean(long[] values)

Here you can find the source of mean(long[] values)

Description

mean

License

Open Source License

Declaration

public static long mean(long[] values) 

Method Source Code

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

public class Main {
    public static long mean(long[] values) {

        long sum = 0l;
        for (long v : values) {
            sum += v;//from w  w w  .  j a  v  a2  s.  c o  m
        }
        return sum / values.length;
    }
}

Related

  1. mean(int[] values)
  2. mean(int[] values, int max)
  3. mean(Integer[] values)
  4. mean(List a)
  5. mean(List values)
  6. mean(Number[] array)
  7. Mean(Object in)
  8. mean_Integer(List values)
  9. meanAbortedExecutionTime( double totalExecutionTime, int totalOps, double granuleAbortProb)