Click or drag to resize
BondMduration Method
Returns the modified Macauley duration for a security with an assumed par value of $100.

Namespace: Imsl.Finance
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public static double Mduration(
	DateTime settlement,
	DateTime maturity,
	double coupon,
	double yield,
	BondFrequency frequency,
	DayCountBasis basis
)

Parameters

settlement
Type: SystemDateTime
The DateTime settlement date of the security.
maturity
Type: SystemDateTime
The DateTime maturity date of the security.
coupon
Type: SystemDouble
A double which specifies the security's annual coupon rate.
yield
Type: SystemDouble
A double which specifies the security's annual yield.
frequency
Type: Imsl.FinanceBondFrequency
A int which specifies the number of coupon payments per year (1 for annual, 2 for semiannual, 4 for quarterly).
basis
Type: Imsl.FinanceDayCountBasis
A DayCountBasis object which contains the type of day count basis to use.

Return Value

Type: Double
A double which specifies the modified Macauley duration for a security with an assumed par value of $100.
Remarks

It is computed using the following:

{\it duration} \over {1 + {{\it yield}
            \over {\it frequency}}}
where {\it duration} is calculated from Mduration.

See Also