public StochasticPathwiseLevenbergMarquardt getCloneWithModifiedTargetValues ( List < RandomVariable > newTargetVaues , List < RandomVariable > newWeights , boolean isUseBestParametersAsInitialParameters ) throws CloneNotSupportedException { StochasticPathwiseLevenbergMarquardt clonedOptimizer = clone ( ) ; clonedOptimizer . targetValues = numberListToDoubleArray ( newTargetVaues ) ; clonedOptimizer . weights = numberListToDoubleArray ( newWeights ) ; if ( isUseBestParametersAsInitialParameters && this . done ( ) ) { clonedOptimizer . initialParameters = this . getBestFitParameters ( ) ; } return clonedOptimizer ; }
Create a clone of this LevenbergMarquardt optimizer with a new vector for the target values and weights .