|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.akutan.blacklitterman.BLResults
public class BLResults
This class holds results from a Black-Litterman mixing operation. It includes the asset names, list of views, estimated returns after views,
| Constructor Summary | |
|---|---|
BLResults(java.lang.String[] assets,
BLViews views,
cern.colt.matrix.DoubleMatrix1D er,
cern.colt.matrix.DoubleMatrix2D V,
cern.colt.matrix.DoubleMatrix1D baseWeights,
cern.colt.matrix.DoubleMatrix1D unconstrainedWeights,
cern.colt.matrix.DoubleMatrix1D viewWeights,
double tau)
Constructs |
|
| Method Summary | |
|---|---|
cern.colt.matrix.DoubleMatrix1D |
getActiveWeights()
Returns the active weights, results - base |
cern.colt.matrix.DoubleMatrix1D |
getBaseWeights()
Returns the base weights (prior weights) |
cern.colt.matrix.DoubleMatrix1D |
getEr()
Returns the posterior return vector |
double |
getPortfolioReturn()
Returns the computed portfolio return from the unconstrained weights and the equilibrium returns. |
double |
getPortfolioReturn(cern.colt.matrix.DoubleMatrix1D w)
Compute the portfolio return given a vector of weights |
double |
getTau()
|
cern.colt.matrix.DoubleMatrix1D |
getUnconstrainedWeights()
Returns the unconstrained weights |
cern.colt.matrix.DoubleMatrix2D |
getV()
Returns the posterior covariance matrix |
BLViews |
getViews()
Return the investors views |
protected java.lang.String |
rightJustify(java.lang.String input,
int length)
Helper function used to right justify text |
void |
setBaseWeights(cern.colt.matrix.DoubleMatrix1D baseWeights)
Set the base weights |
void |
setDecFmt(java.text.DecimalFormat decFmt)
Set the decimal format for output |
void |
setPctFmt(java.text.DecimalFormat pctFmt)
Sets the percentage format for output |
void |
setRetFmt(java.text.DecimalFormat retFmt)
Sets the return field format for output |
java.lang.String |
toString()
Implementation of method to format BL results into a String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BLResults(java.lang.String[] assets,
BLViews views,
cern.colt.matrix.DoubleMatrix1D er,
cern.colt.matrix.DoubleMatrix2D V,
cern.colt.matrix.DoubleMatrix1D baseWeights,
cern.colt.matrix.DoubleMatrix1D unconstrainedWeights,
cern.colt.matrix.DoubleMatrix1D viewWeights,
double tau)
assets - Array of asset class namesviews - Container of the viewser - Vector of prior returns for each asset classV - Covariance matrix of asset returnsbaseWeights - Weights of the assets at equilibriumunconstrainedWeights - Weights of the assets after applying the viewsviewWeights - Weights of the viewstau - Uncertainty of the prior returns vs their means| Method Detail |
|---|
public double getTau()
public cern.colt.matrix.DoubleMatrix1D getEr()
public cern.colt.matrix.DoubleMatrix2D getV()
public BLViews getViews()
public cern.colt.matrix.DoubleMatrix1D getUnconstrainedWeights()
public cern.colt.matrix.DoubleMatrix1D getActiveWeights()
public double getPortfolioReturn()
public double getPortfolioReturn(cern.colt.matrix.DoubleMatrix1D w)
w - Weights to use in the calculation of return
public cern.colt.matrix.DoubleMatrix1D getBaseWeights()
public void setBaseWeights(cern.colt.matrix.DoubleMatrix1D baseWeights)
baseWeights - public void setDecFmt(java.text.DecimalFormat decFmt)
decFmt - public void setPctFmt(java.text.DecimalFormat pctFmt)
pctFmt - public void setRetFmt(java.text.DecimalFormat retFmt)
retFmt -
protected java.lang.String rightJustify(java.lang.String input,
int length)
input - String to be justifiedlength - to pad String out to
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||