Class Portfolio
java.lang.Object
org.drip.portfolioconstruction.asset.Portfolio
public class Portfolio
extends java.lang.Object
Portfolio implements an Instance of the Portfolio of Assets.
- Module = Portfolio Core Module
- Library = Asset Allocation Analytics
- Project = Portfolio Construction under Allocation Constraints
- Package = Asset Characteristics, Bounds, Portfolio Benchmarks
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description Portfolio(AssetComponent[] assetComponentArray)Portfolio Constructor -
Method Summary
Modifier and Type Method Description AssetComponent[]assetComponentArray()Retrieve the Array of the Asset Componentsjava.lang.String[]assetIDArray()Retrieve the Array of Asset IDsintcardinality()Retrieve the Portfolio Asset CardinalitydoubleexpectedReturn(AssetUniverseStatisticalProperties assetUniverseStatisticalProperties)Retrieve the Expected Returns of the PortfolioAssetComponenthighestWeightAsset()Retrieve the Asset Component with the Highest WeightAssetComponentlowestWeightAsset()Retrieve the Asset Component with the Lowest WeightMultivariateMetameta()Retrieve the Multivariate Meta Instance around the Assetsdoublenotional()Retrieve the Notional of the Portfoliostatic PortfolioStandard(java.lang.String[] assetIDArray, double[] amountArray)Construct a Portfolio Instance from the Array of Asset ID's and their Amountsdoublevariance(AssetUniverseStatisticalProperties assetUniverseStatisticalProperties)Retrieve the Variance of the Portfoliodouble[]weightArray()Retrieve the Array of Asset WeightsMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Portfolio
Portfolio Constructor- Parameters:
assetComponentArray- Array of the Asset Components- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
-
Method Details
-
Standard
Construct a Portfolio Instance from the Array of Asset ID's and their Amounts- Parameters:
assetIDArray- Array of Asset IDsamountArray- Array of Amounts- Returns:
- The Portfolio Instance
-
assetComponentArray
Retrieve the Array of the Asset Components- Returns:
- Array of the Asset Components
-
notional
public double notional()Retrieve the Notional of the Portfolio- Returns:
- Notional of the Portfolio
-
assetIDArray
public java.lang.String[] assetIDArray()Retrieve the Array of Asset IDs- Returns:
- The Array of Asset IDs
-
meta
Retrieve the Multivariate Meta Instance around the Assets- Returns:
- The Multivariate Meta Instance around the Assets
-
weightArray
public double[] weightArray()Retrieve the Array of Asset Weights- Returns:
- The Array of Asset Weights
-
lowestWeightAsset
Retrieve the Asset Component with the Lowest Weight- Returns:
- The Asset Component with the Lowest Weight
-
highestWeightAsset
Retrieve the Asset Component with the Highest Weight- Returns:
- The Asset Component with the Highest Weight
-
cardinality
public int cardinality()Retrieve the Portfolio Asset Cardinality- Returns:
- The Portfolio Asset Cardinality
-
expectedReturn
public double expectedReturn(AssetUniverseStatisticalProperties assetUniverseStatisticalProperties) throws java.lang.ExceptionRetrieve the Expected Returns of the Portfolio- Parameters:
assetUniverseStatisticalProperties- The Asset Pool Statistical Properties Instance- Returns:
- Expected Returns of the Portfolio
- Throws:
java.lang.Exception- Thrown if the Expected Returns cannot be calculated
-
variance
public double variance(AssetUniverseStatisticalProperties assetUniverseStatisticalProperties) throws java.lang.ExceptionRetrieve the Variance of the Portfolio- Parameters:
assetUniverseStatisticalProperties- The Asset Pool Statistical Properties Instance- Returns:
- Variance of the Portfolio
- Throws:
java.lang.Exception- Thrown if the Variance cannot be calculated
-