コード例 #1
0
 private void matchUniform(double mean, Uniform u) {
   myC2vCDF.setRange(0.0, 1.0 / 3.0);
   double c2v = myC2vCDF.getValue();
   double var = c2v * mean * mean;
   double a = mean - Math.sqrt(3.0 * var);
   double b = mean + Math.sqrt(3.0 * var);
   u.setRange(a, b);
 }
コード例 #2
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);
 }
コード例 #3
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);
 }