public final class SimpleAsset extends FinancePortfolio
FinancePortfolio.Context
MATRIX_FACTORY
Constructor and Description |
---|
SimpleAsset(Comparable<?> weight) |
SimpleAsset(Comparable<?> meanReturn,
Comparable<?> volatility) |
SimpleAsset(Comparable<?> meanReturn,
Comparable<?> volatility,
Comparable<?> weight) |
SimpleAsset(FinancePortfolio portfolio) |
SimpleAsset(FinancePortfolio portfolio,
Comparable<?> 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, Comparable<?> weight)
public SimpleAsset(Comparable<?> weight)
public SimpleAsset(Comparable<?> meanReturn, Comparable<?> volatility)
public SimpleAsset(Comparable<?> meanReturn, Comparable<?> volatility, Comparable<?> 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 © 2022 Optimatika. All rights reserved.