BrownianBridge and RandomSequenceGenerator

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

BrownianBridge and RandomSequenceGenerator

Sylvain Bertrand
Hi everyone,

As I'm trying to generate a brownian bridge, I'm looking for the most efficient way to get the ouput.

If I'm not mistaken, it is not possible to get an iterator on the RandomSequenceGenerator, which means that I'd have to generate my random numbers and then pass them to the bridge via the transform function from the BrownianBridge class.

Can someone confirm that's the proper way to do it?

Thanks.


Sylvain

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: BrownianBridge and RandomSequenceGenerator

Luigi Ballabio
On Sun, 2008-05-18 at 14:41 -0400, Sylvain Bertrand wrote:
> As I'm trying to generate a brownian bridge, I'm looking for the most
> efficient way to get the ouput.
>
> If I'm not mistaken, it is not possible to get an iterator on the
> RandomSequenceGenerator, which means that I'd have to generate my
> random numbers and then pass them to the bridge via the transform
> function from the BrownianBridge class.
>
> Can someone confirm that's the proper way to do it?

Correct---you'll have to extract random values from a random-sequence
generator with nextSequence() and use transform(). You can see an
example of this in the PathGenerator class.

Luigi


--

Innovation is hard to schedule.
-- Dan Fylstra



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users