Duration
Calculates the Macauley duration of a security as the weighted average of present value cash flows, measuring bond price sensitivity to yield changes.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions.Functions
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class Duration : NumbersInFunction
Inheritance: objectFunctionBaseFunctionWithArgumentsFunctionWithSameTypeArguments<double>NumbersInFunctionDuration...
Inherited Members
Constructors
Initializes a new DURATION function instance for calculating Macauley duration at $100 par value.
public Duration()
Fields
The name of the function.
public static readonly string FunctionName
Properties
Specifies that numeric arguments exclude booleans during conversion.
public override ArgumentConversionRules ArgumentConversionRules { get; }
The argument conversion rules as ArgumentConversionRules.
Overrides:
Provides metadata including category, description, and argument definitions.
public override FunctionInfo FunctionInfo { get; }
The function info as FunctionInfo.
Overrides:
Methods
Evaluates the function by computing duration from settlement, maturity, coupon, yield, frequency, and day-count basis.
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)
The context.
Returns:Functions result as RadExpression.
Overrides: