java.lang.Object
org.ojalgo.data.domain.finance.portfolio.FinancePortfolio
org.ojalgo.data.domain.finance.portfolio.BlackLittermanModel.View
- All Implemented Interfaces:
Comparable<FinancePortfolio>
- Enclosing class:
BlackLittermanModel
View/Forecast/Opinion
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ojalgo.data.domain.finance.portfolio.FinancePortfolio
FinancePortfolio.Context -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BigDecimalprivate final BlackLittermanModelprivate BigDecimalprivate BigDecimalprivate final List<BigDecimal> Fields inherited from class org.ojalgo.data.domain.finance.portfolio.FinancePortfolio
MATRIX_FACTORY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateView()View(BlackLittermanModel aModel, List<BigDecimal> someWeights) -
Method Summary
Modifier and TypeMethodDescriptiondoubleThe mean/expected return of this instrument.doubleThe instrument's return variance.This method returns a list of the weights of the Portfolio's contained assets.protected voidreset()protected voidsetMeanReturn(BigDecimal aMeanReturn) protected voidsetReturnVariance(BigDecimal aReturnVariance) protected voidsetScale(BigDecimal aScale) Methods inherited from class org.ojalgo.data.domain.finance.portfolio.FinancePortfolio
compareTo, forecast, getConformance, getLossProbability, getLossProbability, getSharpeRatio, getSharpeRatio, getValueAtRisk, getValueAtRisk95, getVolatility, normalise, normalise, toString
-
Field Details
-
myMeanReturn
-
myModel
-
myReturnVariance
-
myScale
-
myWeights
-
-
Constructor Details
-
View
-
View
private View()
-
-
Method Details
-
getMeanReturn
public double getMeanReturn()Description copied from class:FinancePortfolioThe mean/expected return of this instrument. May return either the absolute or excess return of the instrument. The context in which an instance is used should make it clear which. return.- Specified by:
getMeanReturnin classFinancePortfolio
-
getReturnVariance
public double getReturnVariance()Description copied from class:FinancePortfolioThe instrument's return variance. Subclasses must override either FinancePortfolio.getReturnVariance() or FinancePortfolio.getVolatility().- Overrides:
getReturnVariancein classFinancePortfolio
-
getWeights
Description copied from class:FinancePortfolioThis method returns a list of the weights of the Portfolio's contained assets. An asset weight is NOT restricted to being a share/percentage - it can be anything. Most subclasses do however assume that the list of asset weights are shares/percentages that sum up to 100%. Calling FinancePortfolio.normalise() will transform any set of weights to that form.- Specified by:
getWeightsin classFinancePortfolio
-
reset
protected void reset()- Specified by:
resetin classFinancePortfolio
-
setMeanReturn
-
setReturnVariance
-
setScale
-