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