public static double var(double[] v) {double r = Double.NaN;if (v!=null && v.length > 1) {r = devsq(v) / (v.length - 1);}return r;}
public static double var(double[] v){double r = Double.NaN;if (v != null && v.Length > 1){r = devsq(v) / (v.Length - 1);}return r;}