|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.ojalgo.finance.FinanceUtils
public abstract class FinanceUtils
| Method Summary | ||
|---|---|---|
static double |
calculateValueAtRisk(double aReturn,
double aStdDev,
double aConfidence,
double aTime)
|
|
static
|
estimateExcessDiffusionProcess(CalendarDateSeries<V> aPriceSeries,
CalendarDateSeries<V> aRiskFreeInterestRateSeries,
CalendarDateUnit aTimeUnit)
|
|
static CalendarDateSeries<RandomNumber> |
forecast(CalendarDateSeries<? extends Number> aSeries,
int aPointCount,
CalendarDateUnit aTimeUnit,
boolean includeOriginalSeries)
|
|
static CalendarDateSeries<BigDecimal> |
makeCalendarPriceSeries(double[] somePrices,
Calendar aStartCalendar,
CalendarDateUnit aResolution)
|
|
static
|
makeCovarianceMatrix(Collection<CalendarDateSeries<V>> aTimeSeriesCollection)
|
|
static CalendarDateSeries<BigDecimal> |
makeDatePriceSeries(double[] somePrices,
Date aStartDate,
CalendarDateUnit aResolution)
|
|
static
|
makeExcessSampleSet(CalendarDateSeries<V> aPriceSeries,
CalendarDateSeries<V> aRiskFreeInterestRateSeries)
|
|
static double |
toGrowthFactorFromInterestRate(double anInterestRate,
CalendarDateUnit aGrowthFactorUnit)
GrowthFactor = exp(GrowthRate) |
|
static double |
toGrowthRateFromInterestRate(double anInterestRate,
CalendarDateUnit aGrowthRateUnit)
GrowthRate = ln(1.0 + InterestRate) / GrowthRateUnitsPerYear |
|
static double |
toInterestRateFromGrowthFactor(double aGrowthFactor,
CalendarDateUnit aGrowthFactorUnit)
GrowthRate = ln(GrowthFactor) |
|
static double |
toInterestRateFromGrowthRate(double aGrowthRate,
CalendarDateUnit aGrowthRateUnit)
InterestRate = exp(GroiwthRate * GrowthRateUnitsPerYear) + 1.0 |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double calculateValueAtRisk(double aReturn,
double aStdDev,
double aConfidence,
double aTime)
public static <V extends Number> GeometricBrownianMotion estimateExcessDiffusionProcess(CalendarDateSeries<V> aPriceSeries,
CalendarDateSeries<V> aRiskFreeInterestRateSeries,
CalendarDateUnit aTimeUnit)
public static CalendarDateSeries<RandomNumber> forecast(CalendarDateSeries<? extends Number> aSeries,
int aPointCount,
CalendarDateUnit aTimeUnit,
boolean includeOriginalSeries)
public static CalendarDateSeries<BigDecimal> makeCalendarPriceSeries(double[] somePrices,
Calendar aStartCalendar,
CalendarDateUnit aResolution)
public static <V extends Number> BasicMatrix makeCovarianceMatrix(Collection<CalendarDateSeries<V>> aTimeSeriesCollection)
aTimeSeriesCollection -
public static CalendarDateSeries<BigDecimal> makeDatePriceSeries(double[] somePrices,
Date aStartDate,
CalendarDateUnit aResolution)
public static <K extends Comparable<K>,V extends Number> SampleSet makeExcessSampleSet(CalendarDateSeries<V> aPriceSeries,
CalendarDateSeries<V> aRiskFreeInterestRateSeries)
K - Time series key typeV - Time series value typeaPriceSeries - A series of pricesaRiskFreeInterestRateSeries - A series of interest rates (risk free return expressed in %)
public static double toGrowthFactorFromInterestRate(double anInterestRate,
CalendarDateUnit aGrowthFactorUnit)
anInterestRate - Annualised interest rate (percentage per year)aGrowthFactorUnit - A growth factor unit
public static double toGrowthRateFromInterestRate(double anInterestRate,
CalendarDateUnit aGrowthRateUnit)
anInterestRate - Annualised interest rate (percentage per year)aGrowthRateUnit - A growth rate unit
public static double toInterestRateFromGrowthFactor(double aGrowthFactor,
CalendarDateUnit aGrowthFactorUnit)
aGrowthFactor - A growth factor per unit (day, week, month, year...)aGrowthFactorUnit - A growth factor unit
public static double toInterestRateFromGrowthRate(double aGrowthRate,
CalendarDateUnit aGrowthRateUnit)
aGrowthRate - A growth rate per unit (day, week, month, year...)aGrowthRateUnit - A growth rate unit
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||