private void triangPositiveSkew(double mean, double var, Triangular t) { double b = mean + Math.sqrt(2.0 * var); double c = b; double a = mean - 2.0 * Math.sqrt(2.0 * var); t.setParameters(a, c, b); }
private void triangSymmetric(double mean, double var, Triangular t) { double a = mean - Math.sqrt(6.0 * var); double b = mean + Math.sqrt(6.0 * var); double c = mean; t.setParameters(a, c, b); }