java: public static double varp(double[] v) {double r = Double.NaN;if (v!=null && v.length > 1) {r = devsq(v) /v.length;}return r;}
C#: public static double varp(double[] v){double r = Double.NaN;if (v != null && v.Length > 1){r = devsq(v) / v.Length;}return r;}