Class PortfolioOptimizer.Allocation
java.lang.Object
com.quantfinlib.optimization.PortfolioOptimizer.Allocation
- Enclosing class:
PortfolioOptimizer
An optimized allocation with its risk/return profile (same periodicity as the inputs).
-
Constructor Summary
ConstructorsConstructorDescriptionAllocation(double[] weights, double expectedReturn, double volatility, double sharpe) Creates the value; array and collection arguments are copied. -
Method Summary
-
Constructor Details
-
Allocation
public Allocation(double[] weights, double expectedReturn, double volatility, double sharpe) Creates the value; array and collection arguments are copied.
-
-
Method Details
-
weights
public double weights(int i) Elementiofweights. -
weightsLength
public int weightsLength()Length ofweights. -
weightsCopy
public double[] weightsCopy()A fresh copy ofweights. -
expectedReturn
public double expectedReturn()expectedReturn. -
volatility
public double volatility()volatility. -
sharpe
public double sharpe()sharpe. -
equals
-
hashCode
-
toString
-