Changeset 219
- Timestamp:
- 06/28/08 09:48:23 (3 months ago)
- Files:
-
- trunk/QLNet/Examples/EquityOption/EquityOption.cs (modified) (1 diff)
- trunk/QLNet/QLNet/Methods/montecarlo/lsmbasissystem.cs (added)
- trunk/QLNet/QLNet/QLNet.csproj (modified) (1 diff)
- trunk/QLNet/QLNet/Termstructures/Volatility/Sabr.cs (modified) (2 diffs)
- trunk/QLNet/QLNet/Termstructures/Volatility/SmileSection.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/QLNet/Examples/EquityOption/EquityOption.cs
r198 r219 250 250 Console.WriteLine("{0,-" + widths[3] + ":0.000000}", "N/A"); 251 251 252 // //Monte Carlo Method: MC (Longstaff Schwartz)253 //method = "MC (Longstaff Schwartz)";252 // Monte Carlo Method: MC (Longstaff Schwartz) 253 method = "MC (Longstaff Schwartz)"; 254 254 //IPricingEngine mcengine3 = new MakeMCAmericanEngine<PseudoRandom>(bsmProcess) 255 255 // .withSteps(100) trunk/QLNet/QLNet/QLNet.csproj
r204 r219 230 230 <Compile Include="Methods\montecarlo\earlyexercisepathpricer.cs" /> 231 231 <Compile Include="Methods\montecarlo\longstaffschwartzpathpricer.cs" /> 232 <Compile Include="Methods\montecarlo\lsmbasissystem.cs" /> 232 233 <Compile Include="Methods\montecarlo\mctraits.cs" /> 233 234 <Compile Include="Methods\montecarlo\montecarlomodel.cs" /> trunk/QLNet/QLNet/Termstructures/Volatility/Sabr.cs
r119 r219 52 52 const double m = 10; 53 53 54 // recheck epsilon55 throw new ApplicationException();56 54 if (Math.Abs(z * z) > Const.QL_Epsilon * m) 57 55 multiplier = z/xx; … … 81 79 throw new ApplicationException("strike must be positive: " + strike + " not allowed"); 82 80 if (!(forward>0.0)) 83 throw new ApplicationException(" forward must be positive: " + forward + " not allowed");81 throw new ApplicationException("at the money forward rate must be: " + forward + " not allowed"); 84 82 if (!(expiryTime>=0.0)) 85 83 throw new ApplicationException("expiry time must be non-negative: " + expiryTime + " not allowed"); trunk/QLNet/QLNet/Termstructures/Volatility/SmileSection.cs
r61 r219 135 135 136 136 if (!(forward_>0.0)) 137 throw new ApplicationException(" forward must be positive: " + forward_ + " not allowed");137 throw new ApplicationException("at the money forward rate must be: " + forward_ + " not allowed"); 138 138 Utils.validateSabrParameters(alpha_, beta_, nu_, rho_); 139 139 } … … 150 150 151 151 if (!(forward_>0.0)) 152 throw new ApplicationException(" forward must be positive: " + forward_ + " not allowed");152 throw new ApplicationException("at the money forward rate must be: " + forward_ + " not allowed"); 153 153 Utils.validateSabrParameters(alpha_, beta_, nu_, rho_); 154 154 }