PerpetualPreferredCalculatorcalculateEstimatedMacaulayDuration 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#
public override 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.

Implements

CalculatorcalculateEstimatedMacaulayDuration(Double, Double, Double)

Remarks

This is usually faster than the actual Macaulay duration method.

Exceptions

CalculationException CalculationException

See Also