|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.akutan.blacklitterman.BLViews
public class BLViews
| Field Summary | |
|---|---|
protected int |
_numAssets
|
protected cern.colt.matrix.DoubleMatrix2D |
_o
|
protected java.util.List<BLView> |
_views
|
| Constructor Summary | |
|---|---|
BLViews(int numAssets)
Constructs a container for views to be applied in the Black-Litterman model. |
|
| Method Summary | |
|---|---|
void |
add(BLView view)
Adds a view to the container. |
BLView |
get(int i)
Returns a view from the container |
int |
getNumAssets()
Number of assets |
cern.colt.matrix.DoubleMatrix2D |
makeO()
Builds the O matrix from the views (variance of the views). |
cern.colt.matrix.DoubleMatrix2D |
makeP()
Builds the pick matrix of the views (P) |
cern.colt.matrix.DoubleMatrix1D |
makeQ()
Builds up the Q vector from the views (returns of the views) |
void |
setO(cern.colt.matrix.DoubleMatrix2D o)
Sets the matrix of variance of the views for all views. |
int |
size()
Returns the number of views |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _numAssets
protected java.util.List<BLView> _views
protected cern.colt.matrix.DoubleMatrix2D _o
| Constructor Detail |
|---|
public BLViews(int numAssets)
numAssets - Number of assets in the problem| Method Detail |
|---|
public void add(BLView view)
view - Adds the specified view to the list of views to be appliedpublic BLView get(int i)
i - Identifies the view
public int size()
public int getNumAssets()
public void setO(cern.colt.matrix.DoubleMatrix2D o)
o - Matrix of variance of views to override
java.lang.IllegalArgumentException - if the matrix of variances is not
of the right size.public cern.colt.matrix.DoubleMatrix2D makeP()
public cern.colt.matrix.DoubleMatrix1D makeQ()
public cern.colt.matrix.DoubleMatrix2D makeO()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||