documentation on 'Leg' ?

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

documentation on 'Leg' ?

Khanh Nguyen
Hi all,

I am trying to calculate the cashflow of a fixed rate bond. The
documentation leads me to method cashflow() that returns an object of
type 'Leg' but I can not find any documentation for it. Please help.
Thanks.

-k

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: documentation on 'Leg' ?

Kim Kuen Tang
Hi Khanh,

the definition of Leg is the following:
    typedef std::vector<boost::shared_ptr<CashFlow> > Leg; .

This can be seen in the file ql\cashflow.hpp.

Sorry that i cannot provide you with a documentation on the object Leg.
Perhaps someone else has a documentation, and can post it here. :-)

Hope that helps.

Best regards,
Kim

Khanh Nguyen schrieb:

> Hi all,
>
> I am trying to calculate the cashflow of a fixed rate bond. The
> documentation leads me to method cashflow() that returns an object of
> type 'Leg' but I can not find any documentation for it. Please help.
> Thanks.
>
> -k
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>
>  


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: documentation on 'Leg' ?

Luigi Ballabio
On Fri, 2009-05-22 at 23:17 +0200, Kim Kuen Tang wrote:
> Hi Khanh,
>
> the definition of Leg is the following:
>     typedef std::vector<boost::shared_ptr<CashFlow> > Leg; .
>
> This can be seen in the file ql\cashflow.hpp.
>
> Sorry that i cannot provide you with a documentation on the object Leg.
> Perhaps someone else has a documentation, and can post it here. :-)

The Leg object has no finance-related methods itself.
Most functions acting on legs are in the CashFlows class (see
<ql/cashflows/cashflows.hpp>.)

Luigi


--

Vin: It's like this fellow I knew in El Paso. One day, he just took
all his clothes off and jumped in a mess of cactus. I asked him that
same question, "Why?"
Calvera: And?
Vin: He said, "It seemed like a good idea at the time."
-- The Magnificent Seven



------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users