/src/main/java/net/finmath/optimizer/StochasticLevenbergMarquardt.java
this.initialParameters = initialParameters;clonedOptimizer.initialParameters = this.getBestFitParameters( ) ;
clonedOptimizer.initialParameters = this.getBestFitParameters ( ) ;
return clonedOptimizer; } public StochasticLevenbergMarquardt getCloneWithModifiedTargetValues(final List<RandomVariable> newTargetVaues, final List<RandomVariable> newWeights, final boolean isUseBestParametersAsInitialParameters) throws CloneNotSupportedException { final StochasticLevenbergMarquardt clonedOptimizer = clone(); clonedOptimizer.targetValues = newTargetVaues.toArray(new RandomVariable[] {}); if(isUseBestParametersAsInitialParameters && this.done()) { <extra_id_0> } return clonedOptimizer; } }