Here you can find the source of mean(double a, double b)
Parameter | Description |
---|---|
a | First double. |
b | Second double. |
public static double mean(double a, double b)
//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; } }