WebCab Bonds for COM v2.01

DurationConvexity.DurationOfPortfolioValue Method 

Calculates the duration of a bond portfolio when the duration and value of each bond within the portfolio is known.

public double DurationOfPortfolioValue(
   double[] duration,
   double[] valueOfBond
);

Parameters

duration
valueOfBond
An array where the first term is the value of the first bond within the portfolio and the second term is the value of the second bond within the portfolio and on so.

Return Value

The duration of the portfolio.

See Also

DurationConvexity Class | WebCab.COM.Finance.Bonds Namespace | Duration - Use this method to find the duration of each member of the portfolio