CalculatorcalculateEstimatedMacaulayDuration Method
Calculate an estimated Macaulay duration.
Namespace: com.ftlabs.fisa.calcAssembly: FISA.NET (in FISA.NET.dll) Version: 1.16.0.13 (1.16.0.13)
double calculateEstimatedMacaulayDuration(
double pv1b,
double price,
double yield
)
Function calculateEstimatedMacaulayDuration (
pv1b As Double,
price As Double,
yield As Double
) As Double
- 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.
Doublean estimated Macaulay duration.
This is usually faster than the actual Macaulay duration method.