|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.akutan.optimization.StatePreference
public class StatePreference
| Nested Class Summary | |
|---|---|
class |
StatePreference.Summary
Class which holds a summary of the state of a simulation. |
| Constructor Summary | |
|---|---|
StatePreference(int bin)
Constructs |
|
| Method Summary | |
|---|---|
protected cern.colt.matrix.DoubleMatrix1D |
getReturns()
Returns the expected return vector |
protected cern.colt.matrix.DoubleMatrix1D |
getStdDev()
Returns the measured standard deviation vector |
static void |
main(java.lang.String[] args)
Tests the StatePreference concept given the data from Satchell and Scowcroft chaptrer 12 |
cern.colt.matrix.DoubleMatrix2D |
simulate(int num,
cern.colt.matrix.DoubleMatrix1D er,
cern.colt.matrix.DoubleMatrix2D covar)
Called to simulate some results, note that we do not have a covariance matrix for this example so we are basically assuming a correlation of 0 between the various elements. |
StatePreference.Summary |
summarize(cern.colt.matrix.DoubleMatrix2D assetStates)
Given the raw simulation data, we compute mean vector and covariance matrix |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatePreference(int bin)
bin - Number of bins| Method Detail |
|---|
protected cern.colt.matrix.DoubleMatrix1D getReturns()
protected cern.colt.matrix.DoubleMatrix1D getStdDev()
public cern.colt.matrix.DoubleMatrix2D simulate(int num,
cern.colt.matrix.DoubleMatrix1D er,
cern.colt.matrix.DoubleMatrix2D covar)
num - Number of simulationser - Vector of mean expected returnscovar - Matrix of covariances of the asset returns
public StatePreference.Summary summarize(cern.colt.matrix.DoubleMatrix2D assetStates)
assetStates - Matrix of assetStates # of simulations x # of assets
public static void main(java.lang.String[] args)
args - Command line arguments (ignored)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||