Returns the yield of a security that pays periodic interest.
Namespace: Imsl.FinanceAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntaxpublic static double Yield(
DateTime settlement,
DateTime maturity,
double rate,
double price,
double redemption,
BondFrequency frequency,
DayCountBasis basis
)
Public Shared Function Yield (
settlement As DateTime,
maturity As DateTime,
rate As Double,
price As Double,
redemption As Double,
frequency As BondFrequency,
basis As DayCountBasis
) As Double
public:
static double Yield(
DateTime settlement,
DateTime maturity,
double rate,
double price,
double redemption,
BondFrequency frequency,
DayCountBasis^ basis
)
static member Yield :
settlement : DateTime *
maturity : DateTime *
rate : float *
price : float *
redemption : float *
frequency : BondFrequency *
basis : DayCountBasis -> float
Parameters
- settlement
- Type: SystemDateTime
The DateTime settlement date of the security.
- maturity
- Type: SystemDateTime
The DateTime maturity date of the security.
- rate
- Type: SystemDouble
A double which specifies the security's annual coupon rate.
- price
- Type: SystemDouble
A double which specifies the security's price per $100 face
value.
- redemption
- Type: SystemDouble
A double which specifies the security's redemption value per
$100 face value.
- frequency
- Type: Imsl.FinanceBondFrequency
A int which specifies the number of coupon payments per year
(1 for annual, 2 for semiannual, 4 for quarterly).
- basis
- Type: Imsl.FinanceDayCountBasis
A DayCountBasis object which contains the type of day count
basis to use.
Return Value
Type:
Double
A
double which specifies the yield of a security that pays
periodic interest.
Remarks
If there is one coupon period use the following:
In the equation above,

represents the number
of days in the period starting with the settlement date and ending
with the redemption date.

represents the
number of days within the coupon Frequency.

represents the number of days in the period starting with the
beginning of coupon period and ending with the settlement date.
If there is more than one coupon period use the following:
In the equation above,
represents the
number of days in the period from the settlement to the next coupon
date.
represents the number of days within
the coupon Frequency.
represents the number of
coupons payable in the period starting with the settlement date and
ending with the redemption date.
represents
the number of days in the period starting with the beginning of the
coupon period and ending with the settlement date.
See Also