Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }