/src/main/java/net/finmath/optimizer/StochasticLevenbergMarquardt.java
clonedOptimizer.initialParameters = this.getBestFitParameters();
if ( isUseBestParametersAsInitialParameters && this.done ( ) ) { 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[] {}); <extra_id_0> return clonedOptimizer; } }