public final class SimpleAsset extends FinancePortfolio
FinancePortfolio.ContextMATRIX_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, toStringpublic SimpleAsset(FinancePortfolio portfolio)
public SimpleAsset(FinancePortfolio portfolio, Number weight)
public SimpleAsset(Number weight)
public double getMeanReturn()
FinancePortfoliogetMeanReturn in class FinancePortfoliopublic double getVolatility()
FinancePortfoliogetVolatility in class FinancePortfoliopublic BigDecimal getWeight()
public List<BigDecimal> getWeights()
FinancePortfoliogetWeights in class FinancePortfolioprotected void reset()
reset in class FinancePortfolioCopyright © 2017 Optimatika. All rights reserved.