|
From: Luigi B. <lui...@gm...> - 2010-11-29 16:17:10
|
On Sat, 2010-11-27 at 23:41 +0100, Andreas Spengler wrote: > However, instead of changing the interface for the affected > Engine classes, I would rather, as stated in my other mail, propose to > pull up the riskFreeRate member of GeneralizedBlackScholesProcess to the > StochasticProcess class and add another parameter (empty by default) in > e.g. GeometricBrownianMotionProcess' or StochasticProcessArray's > constructor. Hmm. I'm not sure I would do that. For one thing, even when using the Black-Scholes model, one might want to use a different curve for the discount; asking the process for the risk-free rate would prevent that. Furthermore, I'm not sure that a riskFreeRate method belongs to the generic StochasticProcess interface. Luigi -- Blessed is the man who, having nothing to say, abstains from giving wordy evidence of the fact. -- George Eliot |