|
WebCab Portfolio Demo v4.2 (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.webcab.ejb.finance.portfolio.PointsOnEfficientFrontier
This class encapsulates/represents the points of the efficient frontier. Moreover, it
allows us to associated a given set portfolio weights of a portfolio with its associated
expected return. An instance of this class is obtained by invoking the method
Markowitz.getPointsOnEfficientFrontier().
The expected returns and the associated weights can be retrieved by:
expectedReturns, assetWeights fields
getExpectedReturn, getAssetWeights methods
| Method Summary | |
double[] |
getAssetWeights(int pointIndex)
Returns the weights of the assets which make up the portfolio corresponding to the pointIndex point used in order to describe the efficient
frontier. |
double |
getExpectedReturn(int pointIndex)
Returns the expected return of the given points on the efficient frontier selected. |
double |
getNumberOfPoints()
Returns the number of (interpolation) points used in order to describe the efficient frontier. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public double getNumberOfPoints()
public double getExpectedReturn(int pointIndex)
pointIndex - the index of the point on the efficient frontier. Please note
that the index of the points runs from 1.
IllegalArgumentException - thrown if an index is required for which there
does not correspond a point of the set of points which are used to describe to the
efficient frontier.public double[] getAssetWeights(int pointIndex)
pointIndex point used in order to describe the efficient
frontier.
pointIndex - the index of the point on the efficient frontier. Please note
that the index of the points runs from 1.
IllegalArgumentException - thrown if an index is required for which there
does not correspond a point of the set of points which are used to describe to the
efficient frontier.
|
WebCab Portfolio Demo v4.2 (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||