CalculatorcalculateEstimatedMacaulayDuration Method

Calculate an estimated Macaulay duration.

Definition

Namespace: com.ftlabs.fisa.calc
Assembly: FISA.NET (in FISA.NET.dll) Version: 1.16.0.13 (1.16.0.13)
C#
double calculateEstimatedMacaulayDuration(
	double pv1b,
	double price,
	double yield
)

Parameters

pv1b  Double
The average price value obtained by varying the yield up and down one basis point, as returned by the calculatePriceValue1BP method.
price  Double
the price.
yield  Double
the yield.

Return Value

Double
an estimated Macaulay duration.

Remarks

This is usually faster than the actual Macaulay duration method.

Exceptions

CalculationException CalculationException

See Also