public final class SimpleAsset extends FinancePortfolio
FinancePortfolio.Context
MATRIX_FACTORY
Constructor and Description |
---|
SimpleAsset(FinancePortfolio portfolio) |
SimpleAsset(FinancePortfolio portfolio,
Number weight) |
SimpleAsset(Number weight) |
SimpleAsset(Number meanReturn,
Number volatility) |
SimpleAsset(Number meanReturn,
Number volatility,
Number weight) |
Modifier and Type | Method and Description |
---|---|
double |
getMeanReturn()
The mean/expected return of this instrument.
|
double |
getVolatility()
Volatility refers to the standard deviation of the change in value of an asset with a specific time
horizon.
|
BigDecimal |
getWeight()
Assuming there is precisely 1 weight - this class is used to describe 1 asset (portfolio member).
|
List<BigDecimal> |
getWeights()
This method returns a list of the weights of the Portfolio's contained assets.
|
protected void |
reset() |
compareTo, forecast, getConformance, getLossProbability, getLossProbability, getReturnVariance, getSharpeRatio, getSharpeRatio, getValueAtRisk, getValueAtRisk95, normalise, normalise, toString
public SimpleAsset(FinancePortfolio portfolio)
public SimpleAsset(FinancePortfolio portfolio, Number weight)
public SimpleAsset(Number weight)
public double getMeanReturn()
FinancePortfolio
getMeanReturn
in class FinancePortfolio
public double getVolatility()
FinancePortfolio
getVolatility
in class FinancePortfolio
public BigDecimal getWeight()
public List<BigDecimal> getWeights()
FinancePortfolio
getWeights
in class FinancePortfolio
protected void reset()
reset
in class FinancePortfolio
Copyright © 2017 Optimatika. All rights reserved.