Java Array Average avg(double v1, double v2)

Here you can find the source of avg(double v1, double v2)

Description

avg

License

Open Source License

Declaration

public static double avg(double v1, double v2) 

Method Source Code

//package com.java2s;

public class Main {
    public static double avg(double v1, double v2) {
        return (v1 + v2) / 2.;
    }//from   ww  w.ja  va  2 s.  c  o m
}

Related

  1. averageNonZeros(int[] array)
  2. averagePt(double[][] ndPoints)
  3. averageX(long[][] intImg, int width, int height, int i, int j, int dl, int dr)
  4. avg(byte[] values)
  5. avg(double a, double b)
  6. avg(double values[], int size, boolean ignoreNan)
  7. avg(double... a)
  8. avg(double[] a)
  9. avg(double[] array)