public abstract class FinancePortfolio extends Object implements Comparable<FinancePortfolio>
Modifier and Type | Class and Description |
---|---|
static interface |
FinancePortfolio.Context |
Modifier and Type | Field and Description |
---|---|
protected static BasicMatrix.Factory<PrimitiveMatrix> |
MATRIX_FACTORY |
Modifier | Constructor and Description |
---|---|
protected |
FinancePortfolio() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FinancePortfolio reference) |
GeometricBrownianMotion |
forecast() |
double |
getConformance(FinancePortfolio reference) |
double |
getLossProbability() |
double |
getLossProbability(Number timePeriod) |
abstract double |
getMeanReturn()
The mean/expected return of this instrument.
|
double |
getReturnVariance()
The instrument's return variance.
|
double |
getSharpeRatio() |
double |
getSharpeRatio(Number riskFreeReturn) |
double |
getValueAtRisk(Number confidenceLevel,
Number timePeriod)
Value at Risk (VaR) is the maximum loss not exceeded with a given probability defined as the confidence
level, over a given period of time.
|
double |
getValueAtRisk95() |
double |
getVolatility()
Volatility refers to the standard deviation of the change in value of an asset with a specific time
horizon.
|
abstract List<BigDecimal> |
getWeights()
This method returns a list of the weights of the Portfolio's contained assets.
|
FinancePortfolio |
normalise()
Normalised weights Portfolio
|
FinancePortfolio |
normalise(NumberContext weightsContext)
Normalised weights Portfolio
|
protected abstract void |
reset() |
String |
toString() |
protected static final BasicMatrix.Factory<PrimitiveMatrix> MATRIX_FACTORY
public final int compareTo(FinancePortfolio reference)
compareTo
in interface Comparable<FinancePortfolio>
public final GeometricBrownianMotion forecast()
public final double getConformance(FinancePortfolio reference)
public final double getLossProbability()
public final double getLossProbability(Number timePeriod)
public abstract double getMeanReturn()
public double getReturnVariance()
public final double getSharpeRatio()
public final double getSharpeRatio(Number riskFreeReturn)
public final double getValueAtRisk(Number confidenceLevel, Number timePeriod)
public final double getValueAtRisk95()
public double getVolatility()
public abstract List<BigDecimal> getWeights()
public final FinancePortfolio normalise()
public final FinancePortfolio normalise(NumberContext weightsContext)
protected abstract void reset()
Copyright © 2017 Optimatika. All rights reserved.