Click or drag to resize

FitCurveFunc(Double, Double, FuncDouble, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Int32) Method

Non-linear least-squares fitting the points (x,y) to an arbitrary function y : x -> f(p0, p1, p2, p3, p4, x), returning a function y' for the best fitting curve.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static Func<double, double> CurveFunc(
	double[] x,
	double[] y,
	Func<double, double, double, double, double, double, double> f,
	double initialGuess0,
	double initialGuess1,
	double initialGuess2,
	double initialGuess3,
	double initialGuess4,
	double tolerance = 1E-08,
	int maxIterations = 1000
)

Parameters

x  Double

[Missing <param name="x"/> documentation for "M:Altaxo.Calc.Fit.CurveFunc(System.Double[],System.Double[],System.Func{System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double},System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Int32)"]

y  Double

[Missing <param name="y"/> documentation for "M:Altaxo.Calc.Fit.CurveFunc(System.Double[],System.Double[],System.Func{System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double},System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Int32)"]

f  FuncDouble, Double, Double, Double, Double, Double, Double

[Missing <param name="f"/> documentation for "M:Altaxo.Calc.Fit.CurveFunc(System.Double[],System.Double[],System.Func{System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double},System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Int32)"]

initialGuess0  Double

[Missing <param name="initialGuess0"/> documentation for "M:Altaxo.Calc.Fit.CurveFunc(System.Double[],System.Double[],System.Func{System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double},System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Int32)"]

initialGuess1  Double

[Missing <param name="initialGuess1"/> documentation for "M:Altaxo.Calc.Fit.CurveFunc(System.Double[],System.Double[],System.Func{System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double},System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Int32)"]

initialGuess2  Double

[Missing <param name="initialGuess2"/> documentation for "M:Altaxo.Calc.Fit.CurveFunc(System.Double[],System.Double[],System.Func{System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double},System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Int32)"]

initialGuess3  Double

[Missing <param name="initialGuess3"/> documentation for "M:Altaxo.Calc.Fit.CurveFunc(System.Double[],System.Double[],System.Func{System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double},System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Int32)"]

initialGuess4  Double

[Missing <param name="initialGuess4"/> documentation for "M:Altaxo.Calc.Fit.CurveFunc(System.Double[],System.Double[],System.Func{System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double},System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Int32)"]

tolerance  Double  (Optional)

[Missing <param name="tolerance"/> documentation for "M:Altaxo.Calc.Fit.CurveFunc(System.Double[],System.Double[],System.Func{System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double},System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Int32)"]

maxIterations  Int32  (Optional)

[Missing <param name="maxIterations"/> documentation for "M:Altaxo.Calc.Fit.CurveFunc(System.Double[],System.Double[],System.Func{System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double},System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Int32)"]

Return Value

FuncDouble, Double

[Missing <returns> documentation for "M:Altaxo.Calc.Fit.CurveFunc(System.Double[],System.Double[],System.Func{System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double},System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Int32)"]

See Also