QLNet.Forward.impliedYield C# (CSharp) Метод

impliedYield() публичный Метод

public impliedYield ( double underlyingSpotValue, double forwardValue, Date settlementDate, Compounding compoundingConvention, DayCounter dayCounter ) : InterestRate
underlyingSpotValue double
forwardValue double
settlementDate Date
compoundingConvention Compounding
dayCounter DayCounter
Результат InterestRate
        public InterestRate impliedYield(double underlyingSpotValue, double forwardValue, Date settlementDate,
            Compounding compoundingConvention, DayCounter dayCounter)
        {
            double tenor = dayCounter.yearFraction(settlementDate,maturityDate_) ;
            double compoundingFactor = forwardValue/ (underlyingSpotValue-spotIncome(incomeDiscountCurve_)) ;
            return InterestRate.impliedRate(compoundingFactor,
                                            tenor,
                                            dayCounter,
                                            compoundingConvention);
        }