public class PortfolioContext extends Object implements FinancePortfolio.Context
Constructor and Description |
---|
PortfolioContext(Access1D<?> assetReturns,
Access1D<?> assetVolatilities,
Access2D<?> correlations) |
PortfolioContext(Access1D<?> assetReturns,
Access2D<?> covariances) |
Modifier and Type | Method and Description |
---|---|
double |
calculatePortfolioReturn(FinancePortfolio weightsPortfolio) |
double |
calculatePortfolioVariance(FinancePortfolio weightsPortfolio) |
PrimitiveMatrix |
getAssetReturns() |
PrimitiveMatrix |
getAssetVolatilities() |
PrimitiveMatrix |
getCorrelations() |
PrimitiveMatrix |
getCovariances() |
int |
size() |
public PortfolioContext(Access1D<?> assetReturns, Access1D<?> assetVolatilities, Access2D<?> correlations)
public double calculatePortfolioReturn(FinancePortfolio weightsPortfolio)
calculatePortfolioReturn
in interface FinancePortfolio.Context
public double calculatePortfolioVariance(FinancePortfolio weightsPortfolio)
calculatePortfolioVariance
in interface FinancePortfolio.Context
public PrimitiveMatrix getAssetReturns()
getAssetReturns
in interface FinancePortfolio.Context
public PrimitiveMatrix getAssetVolatilities()
getAssetVolatilities
in interface FinancePortfolio.Context
public PrimitiveMatrix getCorrelations()
getCorrelations
in interface FinancePortfolio.Context
public PrimitiveMatrix getCovariances()
getCovariances
in interface FinancePortfolio.Context
public int size()
size
in interface FinancePortfolio.Context
Copyright © 2017 Optimatika. All rights reserved.