|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.fixagora.basis.shared.control.analysis.AnalysisToolPak
public class AnalysisToolPak
The Class AnalysisToolPak.
Constructor Summary | |
---|---|
AnalysisToolPak()
|
Method Summary | |
---|---|
static double |
getAccrInt(java.util.Date issue,
java.util.Date firstInterest,
java.util.Date settlement,
double rate,
double redemption,
int frequency,
int basis)
Gets the accr int. |
static double |
getAccrIntM(java.util.Date issue,
java.util.Date settlement,
double rate,
double redemption,
int basis)
Gets the accr int m. |
static double |
getCoupDays(java.util.Date settlement,
java.util.Date maturity,
int frequency,
int basis)
Gets the coup days. |
static double |
getCoupDaysNC(java.util.Date settlement,
java.util.Date maturity,
int frequency,
int basis)
Gets the coup days nc. |
static double |
getCoupNcd(java.util.Date settlement,
java.util.Date maturity,
int frequency,
int basis)
Gets the coup ncd. |
static double |
getCoupNum(java.util.Date settlement,
java.util.Date maturity,
int frequency,
int basis)
Gets the coup num. |
static double |
getCouponDayBS(java.util.Date settlement,
java.util.Date maturity,
int frequency,
int basis)
Gets the coupon day bs. |
static double |
getCoupPcd(java.util.Date settlement,
java.util.Date maturity,
int frequency,
int basis)
Gets the coup pcd. |
static double |
getDisc(java.util.Date settlement,
java.util.Date maturity,
double price,
double redemption,
int basis)
Gets the disc. |
static double |
getDuration(java.util.Date settlement,
java.util.Date maturity,
double rate,
double yield,
int frequency,
int basis)
Gets the duration. |
static double |
getEffect(double nominal,
double npery)
Gets the effect. |
static double |
getIntRate(java.util.Date settlement,
java.util.Date maturity,
double investement,
double redemption,
int basis)
Gets the int rate. |
static double |
getMDuration(java.util.Date settlement,
java.util.Date maturity,
double rate,
double yield,
int frequency,
int basis)
Gets the m duration. |
static double |
getNominal(double effect,
double npery)
Gets the nominal. |
static double |
getNPer(double rate,
double pmt,
double pv,
double fv,
double type)
Gets the n per. |
static double |
getOddFPrice(java.util.Date settlement,
java.util.Date maturity,
java.util.Date issue,
java.util.Date firstCoupon,
double rate,
double yield,
double redemption,
int frequency,
int basis)
Gets the odd f price. |
static double |
getOddFYield(java.util.Date settlement,
java.util.Date maturity,
java.util.Date issue,
java.util.Date firstCoupon,
double rate,
double price,
double redemption,
int frequency,
int basis)
Gets the odd f yield. |
static double |
getOddLPrice(java.util.Date settlement,
java.util.Date maturity,
java.util.Date lastInterest,
double rate,
double yield,
double redemption,
int frequency,
int basis)
Gets the odd l price. |
static double |
getOddLYield(java.util.Date settlement,
java.util.Date maturity,
java.util.Date lastInterest,
double rate,
double price,
double redemption,
int frequency,
int basis)
Gets the odd l yield. |
static double |
getPrice(java.util.Date settlement,
java.util.Date maturity,
double rate,
double yield,
double redemption,
int frequency,
int basis)
Gets the price. |
static double |
getPriceDisc(java.util.Date settlement,
java.util.Date maturity,
double discount,
double redemption,
int basis)
Gets the price disc. |
static double |
getPriceMat(java.util.Date settlement,
java.util.Date maturity,
java.util.Date issue,
double rate,
double yield,
int basis)
Gets the price mat. |
static double |
getTBillEq(java.util.Date settlement,
java.util.Date maturity,
double discount)
Gets the t bill eq. |
static double |
getTBillPrice(java.util.Date settlement,
java.util.Date maturity,
double rate)
Gets the t bill price. |
static double |
getTBillYield(java.util.Date settlement,
java.util.Date maturity,
double price)
Gets the t bill yield. |
static double |
getYield(java.util.Date settlement,
java.util.Date maturity,
double rate,
double price,
double redemption,
int frequency,
int basis)
Gets the yield. |
static double |
getYieldDisc(java.util.Date settlement,
java.util.Date maturity,
double price,
double redemption,
int basis)
Gets the yield disc. |
static double |
getYieldMat(java.util.Date settlement,
java.util.Date maturity,
java.util.Date issue,
double rate,
double price,
int basis)
Gets the yield mat. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnalysisToolPak()
Method Detail |
---|
public static double getCoupPcd(java.util.Date settlement, java.util.Date maturity, int frequency, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityfrequency
- the frequencybasis
- the basis
java.lang.Exception
- the exceptionpublic static double getCoupNcd(java.util.Date settlement, java.util.Date maturity, int frequency, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityfrequency
- the frequencybasis
- the basis
java.lang.Exception
- the exceptionpublic static double getCoupNum(java.util.Date settlement, java.util.Date maturity, int frequency, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityfrequency
- the frequencybasis
- the basis
java.lang.Exception
- the exceptionpublic static double getCouponDayBS(java.util.Date settlement, java.util.Date maturity, int frequency, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityfrequency
- the frequencybasis
- the basis
java.lang.Exception
- the exceptionpublic static double getCoupDays(java.util.Date settlement, java.util.Date maturity, int frequency, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityfrequency
- the frequencybasis
- the basis
java.lang.Exception
- the exceptionpublic static double getAccrInt(java.util.Date issue, java.util.Date firstInterest, java.util.Date settlement, double rate, double redemption, int frequency, int basis) throws java.lang.Exception
issue
- the issuefirstInterest
- the first interestsettlement
- the settlementrate
- the rateredemption
- the redemptionfrequency
- the frequencybasis
- the basis
java.lang.Exception
- the exceptionpublic static double getCoupDaysNC(java.util.Date settlement, java.util.Date maturity, int frequency, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityfrequency
- the frequencybasis
- the basis
java.lang.Exception
- the exceptionpublic static double getDisc(java.util.Date settlement, java.util.Date maturity, double price, double redemption, int basis)
settlement
- the settlementmaturity
- the maturityprice
- the priceredemption
- the redemptionbasis
- the basis
public static double getAccrIntM(java.util.Date issue, java.util.Date settlement, double rate, double redemption, int basis)
issue
- the issuesettlement
- the settlementrate
- the rateredemption
- the redemptionbasis
- the basis
public static double getPriceDisc(java.util.Date settlement, java.util.Date maturity, double discount, double redemption, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturitydiscount
- the discountredemption
- the redemptionbasis
- the basis
java.lang.Exception
- the exceptionpublic static double getYieldDisc(java.util.Date settlement, java.util.Date maturity, double price, double redemption, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityprice
- the priceredemption
- the redemptionbasis
- the basis
java.lang.Exception
- the exceptionpublic static double getPrice(java.util.Date settlement, java.util.Date maturity, double rate, double yield, double redemption, int frequency, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityrate
- the rateyield
- the yieldredemption
- the redemptionfrequency
- the frequencybasis
- the basis
java.lang.Exception
- the exceptionpublic static double getYield(java.util.Date settlement, java.util.Date maturity, double rate, double price, double redemption, int frequency, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityrate
- the rateprice
- the priceredemption
- the redemptionfrequency
- the frequencybasis
- the basis
java.lang.Exception
- the exceptionpublic static double getTBillPrice(java.util.Date settlement, java.util.Date maturity, double rate) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityrate
- the rate
java.lang.Exception
- the exceptionpublic static double getTBillYield(java.util.Date settlement, java.util.Date maturity, double price) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityprice
- the price
java.lang.Exception
- the exceptionpublic static double getTBillEq(java.util.Date settlement, java.util.Date maturity, double discount) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturitydiscount
- the discount
java.lang.Exception
- the exceptionpublic static double getPriceMat(java.util.Date settlement, java.util.Date maturity, java.util.Date issue, double rate, double yield, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityissue
- the issuerate
- the rateyield
- the yieldbasis
- the basis
java.lang.Exception
- the exceptionpublic static double getYieldMat(java.util.Date settlement, java.util.Date maturity, java.util.Date issue, double rate, double price, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityissue
- the issuerate
- the rateprice
- the pricebasis
- the basis
java.lang.Exception
- the exceptionpublic static double getDuration(java.util.Date settlement, java.util.Date maturity, double rate, double yield, int frequency, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityrate
- the rateyield
- the yieldfrequency
- the frequencybasis
- the basis
java.lang.Exception
- the exceptionpublic static double getMDuration(java.util.Date settlement, java.util.Date maturity, double rate, double yield, int frequency, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityrate
- the rateyield
- the yieldfrequency
- the frequencybasis
- the basis
java.lang.Exception
- the exceptionpublic static double getOddLPrice(java.util.Date settlement, java.util.Date maturity, java.util.Date lastInterest, double rate, double yield, double redemption, int frequency, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturitylastInterest
- the last interestrate
- the rateyield
- the yieldredemption
- the redemptionfrequency
- the frequencybasis
- the basis
java.lang.Exception
- the exceptionpublic static double getOddLYield(java.util.Date settlement, java.util.Date maturity, java.util.Date lastInterest, double rate, double price, double redemption, int frequency, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturitylastInterest
- the last interestrate
- the rateprice
- the priceredemption
- the redemptionfrequency
- the frequencybasis
- the basis
java.lang.Exception
- the exceptionpublic static double getOddFPrice(java.util.Date settlement, java.util.Date maturity, java.util.Date issue, java.util.Date firstCoupon, double rate, double yield, double redemption, int frequency, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityissue
- the issuefirstCoupon
- the first couponrate
- the rateyield
- the yieldredemption
- the redemptionfrequency
- the frequencybasis
- the basis
java.lang.Exception
- the exceptionpublic static double getOddFYield(java.util.Date settlement, java.util.Date maturity, java.util.Date issue, java.util.Date firstCoupon, double rate, double price, double redemption, int frequency, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityissue
- the issuefirstCoupon
- the first couponrate
- the rateprice
- the priceredemption
- the redemptionfrequency
- the frequencybasis
- the basis
java.lang.Exception
- the exceptionpublic static double getIntRate(java.util.Date settlement, java.util.Date maturity, double investement, double redemption, int basis) throws java.lang.Exception
settlement
- the settlementmaturity
- the maturityinvestement
- the investementredemption
- the redemptionbasis
- the basis
java.lang.Exception
- the exceptionpublic static double getEffect(double nominal, double npery) throws java.lang.Exception
nominal
- the nominalnpery
- the npery
java.lang.Exception
- the exceptionpublic static double getNominal(double effect, double npery) throws java.lang.Exception
effect
- the effectnpery
- the npery
java.lang.Exception
- the exceptionpublic static double getNPer(double rate, double pmt, double pv, double fv, double type) throws java.lang.Exception
rate
- the ratepmt
- the pmtpv
- the pvfv
- the fvtype
- the type
java.lang.Exception
- the exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |