zr2fwd.h File Reference

#include "bastypes.h"
#include "ldate.h"
#include "cfinanci.h"
#include "interp.h"

Functions

int JpmcdsForwardFromZCurve (TCurve *zeroCurve, long interpType, TDate startDate, TDate endDate, long dayCountConv, long basis, double *rate)
 Computes the zero-coupon forward rate from startDate to the maturity date using a zero-coupon curve.

Detailed Description


Function Documentation

int JpmcdsForwardFromZCurve ( TCurve zeroCurve,
long  interpType,
TDate  startDate,
TDate  endDate,
long  dayCountConv,
long  basis,
double *  rate 
)

Computes the zero-coupon forward rate from startDate to the maturity date using a zero-coupon curve.

Note the routine does not check to make sure that the start date comes before the maturity date, since zero curve creation requires the calculation of forwards which go backwards (JpmcdsDiscountToRate should handle that check anyway).

Parameters:
zeroCurve (I) Zero Curve
interpType (I)
startDate (I) Start Date
endDate (I) End Date
dayCountConv (I) See JpmcdsDayCountFraction
basis (I) See JpmcdsDiscountToRate
rate (O) Rate from start to end


Distributed by BN Algorithms Ltd -- consulting in quantitative finance, mathematical algorithms and software implementations. CDS Home Page. For enquires contact webs@bnikolic.co.uk.
This documentation is derived from ISDA CDS Standard Model version 1.7. You can get a copy of the original ISDA code at www.bnikolic.co.uk. This is a derivative work under the terms of the ISDA CDS Standard Model Public License. BN Algorithms Ltd licenses this work to you solely for on-screen viewing on your own computer. Making copies and further distribution of this work is prohibited.
This documentation is provided "as-is", without warranty of any kind, either expressed or implied, including, without limitation, warranties that the documentation is free of defects, merchantable, fit for a particular purpose or non-infringing. the entire risk as to the quality of the documentation is with you. Should this documentation prove defective in any respect, you (not the licensor) assume the cost of any necessary correction. This disclaimer of warranty constitutes an essential part of this license.