Changeset 196
- Timestamp:
- 05/29/08 05:38:40 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/QLNet/QLNet/Pricingengines/vanilla/mceuropeanengine.cs
r195 r196 95 95 if(samples_ != 0) 96 96 throw new ApplicationException("number of samples already set"); 97 if (PseudoRandom.allowsErrorEstimate != 0)97 if (PseudoRandom.allowsErrorEstimate == 0) 98 98 throw new ApplicationException("chosen random generator policy does not allow an error estimate"); 99 99 tolerance_ = tolerance; trunk/QLNet/QLNet/Pricingengines/vanilla/mcvanillaengine.cs
r194 r196 62 62 seed_ = seed; 63 63 64 if ( !(timeSteps>0))64 if (timeSteps < 0) 65 65 throw new ApplicationException("timeSteps must be positive, " + timeSteps + " not allowed"); 66 if ( !(timeStepsPerYear>0))66 if (timeStepsPerYear < 0) 67 67 throw new ApplicationException("timeStepsPerYear must be positive, " + timeStepsPerYear + " not allowed"); 68 68