public final class FixedWeightsPortfolio extends FinancePortfolio
FinancePortfolio.Context
MATRIX_FACTORY
Constructor and Description |
---|
FixedWeightsPortfolio(FinancePortfolio.Context aContext,
FinancePortfolio weightsPortfolio) |
FixedWeightsPortfolio(MarketEquilibrium aMarketEquilibrium,
BasicMatrix assetWeightsInColumn) |
compareTo, forecast, getConformance, getLossProbability, getLossProbability, getSharpeRatio, getSharpeRatio, getValueAtRisk, getValueAtRisk95, getVolatility, normalise, normalise
public FixedWeightsPortfolio(FinancePortfolio.Context aContext, FinancePortfolio weightsPortfolio)
public FixedWeightsPortfolio(MarketEquilibrium aMarketEquilibrium, BasicMatrix assetWeightsInColumn)
public void calibrate(FinancePortfolio.Context targetReturns)
protected BasicMatrix calculateAssetReturns()
protected BasicMatrix calculateAssetWeights()
public final double calculatePortfolioReturn(FinancePortfolio weightsPortfolio)
calculatePortfolioReturn
in interface FinancePortfolio.Context
public final double calculatePortfolioVariance(FinancePortfolio weightsPortfolio)
calculatePortfolioVariance
in interface FinancePortfolio.Context
public final BasicMatrix getAssetReturns()
getAssetReturns
in interface FinancePortfolio.Context
public final BasicMatrix getAssetVolatilities()
getAssetVolatilities
in interface FinancePortfolio.Context
public final BasicMatrix getAssetWeights()
public final BasicMatrix getCorrelations()
getCorrelations
in interface FinancePortfolio.Context
public final BasicMatrix getCovariances()
getCovariances
in interface FinancePortfolio.Context
public final MarketEquilibrium getMarketEquilibrium()
public final double getMeanReturn()
FinancePortfolio
getMeanReturn
in class FinancePortfolio
public final double getReturnVariance()
FinancePortfolio
getReturnVariance
in class FinancePortfolio
public final Scalar<?> getRiskAversion()
public final String[] getSymbols()
public final List<BigDecimal> getWeights()
FinancePortfolio
getWeights
in class FinancePortfolio
public final void setRiskAversion(Number factor)
public int size()
size
in interface FinancePortfolio.Context
public final List<SimpleAsset> toSimpleAssets()
public final SimplePortfolio toSimplePortfolio()
public String toString()
toString
in class FinancePortfolio
protected final BasicMatrix calculateAssetReturns(BasicMatrix aWeightsVctr)
protected final BasicMatrix calculateAssetWeights(BasicMatrix aReturnsVctr)
protected final Scalar<?> calculatePortfolioReturn(BasicMatrix aWeightsVctr, BasicMatrix aReturnsVctr)
protected final Scalar<?> calculatePortfolioVariance(BasicMatrix aWeightsVctr)
protected final void calibrate(BasicMatrix aWeightsVctr, BasicMatrix aReturnsVctr)
protected void reset()
reset
in class FinancePortfolio
Copyright © 2017 Optimatika. All rights reserved.