Class TurnoverAwareOptimizer.Result
java.lang.Object
com.quantfinlib.alpha.TurnoverAwareOptimizer.Result
- Enclosing class:
TurnoverAwareOptimizer
-
Constructor Summary
ConstructorsConstructorDescriptionResult(double[] weights, double turnover, double objective, double equalityResidual, int iterations, boolean converged) Creates the value; array and collection arguments are copied. -
Method Summary
-
Constructor Details
-
Result
public Result(double[] weights, double turnover, double objective, double equalityResidual, int iterations, boolean converged) Creates the value; array and collection arguments are copied.- Parameters:
weights- optimal bookturnover-½‖w − w₀‖₁objective-αᵀw − λwᵀΣw − κ‖w − w₀‖₁equalityResidual-max_k |(A w)_k|
-
-
Method Details
-
weights
public double weights(int i) Elementiofweights(optimal book). -
weightsLength
public int weightsLength()Length ofweights. -
weightsCopy
public double[] weightsCopy()A fresh copy ofweights. -
turnover
public double turnover()turnover. -
objective
public double objective()objective. -
equalityResidual
public double equalityResidual()equalityResidual. -
iterations
public int iterations()iterations. -
converged
public boolean converged()converged. -
equals
-
hashCode
-
toString
-