public class Portfolio
extends java.lang.Object
Constructor and Description |
---|
Portfolio(AssetComponent[] aAC)
Portfolio Constructor
|
Modifier and Type | Method and Description |
---|---|
AssetComponent[] |
assets()
Retrieve the Array of the Asset Components
|
double |
expectedReturn(AssetUniverseStatisticalProperties apsp)
Retrieve the Expected Returns of the Portfolio
|
java.lang.String[] |
id()
Retrieve the Array of Asset IDs
|
AssetComponent |
maxWeight()
Retrieve the Asset Component with the Maximal Weight
|
MultivariateMeta |
meta()
Retrieve the Multivariate Meta Instance around the Assets
|
AssetComponent |
minWeight()
Retrieve the Asset Component with the Minimal Weight
|
double |
notional()
Retrieve the Notional of the Portfolio
|
static Portfolio |
Standard(java.lang.String[] astrAssetID,
double[] adblAmount)
Construct a Portfolio Instance from the Array of Asset ID's and their Amounts
|
double |
variance(AssetUniverseStatisticalProperties apsp)
Retrieve the Variance of the Portfolio
|
double[] |
weights()
Retrieve the Array of Asset Weights
|
public Portfolio(AssetComponent[] aAC) throws java.lang.Exception
aAC
- Array of the Asset Componentsjava.lang.Exception
- Thrown if the Inputs are Invalidpublic static final Portfolio Standard(java.lang.String[] astrAssetID, double[] adblAmount)
astrAssetID
- Array of Asset IDsadblAmount
- Array of Amountspublic AssetComponent[] assets()
public double notional()
public java.lang.String[] id()
public MultivariateMeta meta()
public double[] weights()
public AssetComponent minWeight()
public AssetComponent maxWeight()
public double expectedReturn(AssetUniverseStatisticalProperties apsp) throws java.lang.Exception
apsp
- The Asset Pool Statistical Properties Instancejava.lang.Exception
- Thrown if the Expected Returns cannot be calculatedpublic double variance(AssetUniverseStatisticalProperties apsp) throws java.lang.Exception
apsp
- The Asset Pool Statistical Properties Instancejava.lang.Exception
- Thrown if the Variance cannot be calculated