Here you can find the source of mean(double v1, double v2)
public static double mean(double v1, double v2)
//package com.java2s; //License from project: Open Source License public class Main { public static double mean(double v1, double v2) { return (v1 + v2) / 2.0d; }/*from ww w .jav a 2 s. co m*/ }