Java mean mean(double a, double b)

Here you can find the source of mean(double a, double b)

Description

Returns the mean of a double value.

License

Open Source License

Parameter

Parameter Description
a First double.
b Second double.

Return

The mean.

Declaration

public static double mean(double a, double b) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from w w w .j  a va 2  s .  co  m*/
     * Returns the mean of a double value.
     *
     * @param a First double.
     * @param b Second double.
     * @return The mean.
     */
    public static double mean(double a, double b) {
        return (a + b) / 2;
    }
}

Related

  1. getMean(ArrayList beats)
  2. getMean(final Integer[] values)
  3. getMeanValue(ArrayList values)
  4. Mean(ArrayList values)
  5. mean(Collection terms)
  6. mean(double ask, double bid)
  7. mean(Double totalValue, int numValues)
  8. mean(double v1, double v2)
  9. mean(double values[])