Documentation of 'org.jquantlib.termstructures.InterestRate' Java class
InterestRate
org.jquantlib.termstructures

Class InterestRate



  • public class InterestRate
    extends java.lang.Object
    This class encapsulate the interest rate compounding algebra. It manages day-counting conventions, compounding conventions, conversion between different conventions, discount/compound factor calculations, and implied/equivalent rate calculations.
    • Method Detail

      • compoundFactor

        public final double compoundFactor(double time)
        Returns:
        the compound (a.k.a capitalization) factor implied by the rate compounded at time t.
      • compoundFactor

        public final double compoundFactor(Date d1,
                                           Date d2)
      • compoundFactor

        public final double compoundFactor(Date d1,
                                           Date d2,
                                           Date refStart,
                                           Date refEnd)
      • discountFactor

        public final double discountFactor(double t)
        Parameters:
        t - time must be measured using InterestRate's own day counter.
        Returns:
        discount factor implied by the rate compounded at time t.
      • discountFactor

        public final double discountFactor(Date d1,
                                           Date d2)
        Parameters:
        d1 - is the start date
        d2 - is the end date
        Returns:
        discount factor implied by the rate compounded between two dates
      • discountFactor

        public final double discountFactor(Date d1,
                                           Date d2,
                                           Date refStart)
        Parameters:
        d1 - is the start date
        d2 - is the end date
        refStart -
        Returns:
        compound factor implied by the rate compounded between two dates
      • discountFactor

        public final double discountFactor(Date d1,
                                           Date d2,
                                           Date refStart,
                                           Date refEnd)
        Returns:
        the compound (a.k.a capitalization) factor implied by the rate compounded between two dates.
      • equivalentRate

        public final InterestRate equivalentRate(double t,
                                                 Compounding comp,
                                                 Frequency freq)
        Returns equivalent interest rate for a compounding period t. The resulting InterestRate shares the same implicit day-counting rule of the original InterestRate instance.

        Time must be measured using the InterestRate's own day counter.

        Returns:
        equivalent interest rate for a compounding period t.
      • equivalentRate

        public final InterestRate equivalentRate(Date d1,
                                                 Date d2,
                                                 DayCounter resultDC,
                                                 Compounding comp,
                                                 Frequency freq)
        Returns equivalent rate for a compounding period between two dates. The resulting rate is calculated taking the required day-counting rule into account.
      • impliedRate

        public static InterestRate impliedRate(double c,
                                               double time,
                                               DayCounter resultDC,
                                               Compounding comp,
                                               Frequency freq)
        Implied interest rate for a given compound factor at a given time. The resulting InterestRate has the day-counter provided as input.
      • impliedRate

        public static InterestRate impliedRate(double compound,
                                               Date d1,
                                               Date d2,
                                               DayCounter resultDC,
                                               Compounding comp,
                                               Frequency freq)
        Implied rate for a given compound factor between two dates. The resulting rate is calculated taking the required day-counting rule into account.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • rate

        public final double rate()

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.