|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.akutan.optimization.SolvedPoint
public class SolvedPoint
| Field Summary | |
|---|---|
protected static java.text.DecimalFormat |
_df
|
protected double |
_er
|
protected java.util.List<double[]> |
_path
|
protected double |
_sigma
|
protected double |
_utility
|
protected double[] |
_weights
|
| Constructor Summary | |
|---|---|
SolvedPoint(double er,
double sigma,
double utility,
double[] weights)
Constructs |
|
SolvedPoint(double er,
double sigma,
double utility,
double[] weights,
java.util.List<double[]> path)
Constructs |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a deep copy of the object |
int |
compareTo(SolvedPoint sp)
Compares this solution to another solution |
double |
getEr()
Returns the expected return of this solution/portfolio |
java.util.List<double[]> |
getPath()
Returns the path of weights if one was saved |
double |
getSigma()
Returns the standard deviation of this portfolio |
double |
getUtility()
Returns the utility of the solution for this point |
double[] |
getWeights()
Returns the weights of the various assets for this solution/portfolio |
void |
setEr(double er)
Sets the expected return for this portfolio |
void |
setSigma(double sigma)
Sets the standard deviation of the portfolio |
java.lang.String |
toString()
Returns a formatted String representing the current state of this object for debugging |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double _er
protected double _sigma
protected double _utility
protected double[] _weights
protected java.util.List<double[]> _path
protected static java.text.DecimalFormat _df
| Constructor Detail |
|---|
public SolvedPoint(double er,
double sigma,
double utility,
double[] weights)
er - Expected return for this portfoliosigma - Standard deviation of returns for this portfolioutility - Value of objective function (standard quadratic utility) for this portfolioweights - Weights of the assets which defines this portfolio
public SolvedPoint(double er,
double sigma,
double utility,
double[] weights,
java.util.List<double[]> path)
er - Expected return for this portfoliosigma - Standard deviation of returns for this portfolioutility - Value of objective function (standard quadratic utility) for this portfolioweights - Weights of the assets which defines this portfoliopath - Path of weights taken to reach this solution| Method Detail |
|---|
public double getEr()
public void setEr(double er)
er - Expected return for the portfoliopublic double getSigma()
public void setSigma(double sigma)
sigma - The standard deviation of the portfoliopublic double getUtility()
public double[] getWeights()
public java.util.List<double[]> getPath()
public int compareTo(SolvedPoint sp)
compareTo in interface java.lang.Comparable<SolvedPoint>sp - The other solution
Comparable.compareTo(Object)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - If any sub-object cannot be cloned.Cloneable,
Object.clone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||