コード例 #1
0
 public double getValue() {
   if (myStateOfXt == 1) {
     myStateOfXt = (int) myBn1.getValue();
     return myStateOfXt;
   } else {
     myStateOfXt = (int) myBn0.getValue();
     return myStateOfXt;
   }
 }
コード例 #2
0
 public void setParameters(double[] parameters) {
   myProbSuccessAfterSuccess = parameters[0];
   myProbSuccessAfterFailure = parameters[1];
   myBn1.setProbabilityOfSuccess(myProbSuccessAfterSuccess);
   myBn0.setProbabilityOfSuccess(myProbSuccessAfterFailure);
   myProbFailure =
       1
           - (myProbSuccessAfterFailure
               / (1 - myProbSuccessAfterSuccess + myProbSuccessAfterFailure));
   myProbSuccess = 1 - myProbFailure;
 }
コード例 #3
0
 public void setAntithetic(boolean flag) {
   myBn1.setAntithetic(flag);
   myBn0.setAntithetic(flag);
 }
コード例 #4
0
 public void resetStartSubstream() {
   myBn1.resetStartSubstream();
   myBn0.resetStartSubstream();
 }
コード例 #5
0
 public void resetNextSubstream() {
   myBn1.resetNextSubstream();
   myBn0.resetNextSubstream();
 }