- java.lang.Object
-
- org.quantlib.InterestRate
-
- All Implemented Interfaces:
AutoCloseable,org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
public class InterestRate extends Object implements org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description InterestRate()InterestRate(double r, DayCounter dc, Compounding comp, Frequency freq)protectedInterestRate(long cPtr, boolean cMemoryOwn)
-
Method Summary
-
-
-
Field Detail
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Detail
-
InterestRate
protected InterestRate(long cPtr, boolean cMemoryOwn)
-
InterestRate
public InterestRate()
-
InterestRate
public InterestRate(double r, DayCounter dc, Compounding comp, Frequency freq)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(InterestRate obj)
-
swigRelease
protected static long swigRelease(InterestRate obj)
-
delete
public void delete()
- Specified by:
deletein interfaceorg.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
rate
public double rate()
-
dayCounter
public DayCounter dayCounter()
-
compounding
public Compounding compounding()
-
discountFactor
public double discountFactor(double t)
-
discountFactor
public double discountFactor(Date d1, Date d2, Date refStart, Date refEnd)
-
discountFactor
public double discountFactor(Date d1, Date d2, Date refStart)
-
discountFactor
public double discountFactor(Date d1, Date d2)
-
compoundFactor
public double compoundFactor(double t)
-
compoundFactor
public double compoundFactor(Date d1, Date d2, Date refStart, Date refEnd)
-
compoundFactor
public double compoundFactor(Date d1, Date d2, Date refStart)
-
compoundFactor
public double compoundFactor(Date d1, Date d2)
-
impliedRate
public static InterestRate impliedRate(double compound, DayCounter resultDC, Compounding comp, Frequency freq, double t)
-
impliedRate
public static InterestRate impliedRate(double compound, DayCounter resultDC, Compounding comp, Frequency freq, Date d1, Date d2, Date refStart, Date refEnd)
-
impliedRate
public static InterestRate impliedRate(double compound, DayCounter resultDC, Compounding comp, Frequency freq, Date d1, Date d2, Date refStart)
-
impliedRate
public static InterestRate impliedRate(double compound, DayCounter resultDC, Compounding comp, Frequency freq, Date d1, Date d2)
-
equivalentRate
public InterestRate equivalentRate(Compounding comp, Frequency freq, double t)
-
equivalentRate
public InterestRate equivalentRate(DayCounter resultDayCounter, Compounding comp, Frequency freq, Date d1, Date d2, Date refStart, Date refEnd)
-
equivalentRate
public InterestRate equivalentRate(DayCounter resultDayCounter, Compounding comp, Frequency freq, Date d1, Date d2, Date refStart)
-
equivalentRate
public InterestRate equivalentRate(DayCounter resultDayCounter, Compounding comp, Frequency freq, Date d1, Date d2)
-
-