public double getValue() { if (myStateOfXt == 1) { myStateOfXt = (int) myBn1.getValue(); return myStateOfXt; } else { myStateOfXt = (int) myBn0.getValue(); return myStateOfXt; } }
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; }
public void setAntithetic(boolean flag) { myBn1.setAntithetic(flag); myBn0.setAntithetic(flag); }
public void resetStartSubstream() { myBn1.resetStartSubstream(); myBn0.resetStartSubstream(); }
public void resetNextSubstream() { myBn1.resetNextSubstream(); myBn0.resetNextSubstream(); }