Click or drag to resize

NonlinearObjectiveFunctionNonAllocatingGetLowestParameterVariationToChangeFunctionValues Method

If a parameter is zero, it is hard to find the right order of magnitude for a variation of that parameter. Here, the variation is guessed by starting with the lowest possible variation, and increasing the variation until the function values deviate from the original value.

Namespace: Altaxo.Calc.Optimization.ObjectiveFunctions
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static double GetLowestParameterVariationToChangeFunctionValues(
	Func<Vector<double>, Vector<double>> EvaluateModelValues,
	Vector<double> currentValues,
	int idxParameter,
	Vector<double> parameters,
	Vector<double> h
)

Parameters

EvaluateModelValues  FuncVectorDouble, VectorDouble
Function that evaluates the model values. Argument is the parameters; result is the model values.
currentValues  VectorDouble
The current function values.
idxParameter  Int32
The index of the parameter for which to find a good guess for the variation.
parameters  VectorDouble
The parameters.
h  VectorDouble
A scratch array.

Return Value

Double
The lowest variation (increased in steps of 2) for which the function values deviate from the original values.
See Also