package dotnet54.measures.univariate_pea;

public class utils {
	public static double EPSILON = 10e-12;

	public static double dist(double a, double b) {
		double d = a-b;
		return d*d;
	}

	public static int min(int a, int b, int c) {
		return Integer.min(a, Integer.min(b, c));
	}

	public static int max(int a, int b, int c) {
		return Integer.max(a, Integer.max(b, c));
	}

	public static double min(double a, double b, double c) {
		return Double.min(a, Double.min(b, c));
	}

	public static double max(double a, double b, double c) {
		return Double.max(a, Double.max(b, c));
	}

}
