예제 #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);
 }
예제 #4
0
 public void setC2v(double c2v) {
   myC2v = c2v;
   c0 = Math.log(myC2v + 1.0);
 }