Click or drag to resize

FitCurve(Double, Double, FuncDouble, 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, x), returning its best fitting parameter p0, p1 and p2.

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

Parameters

x  Double

[Missing <param name="x"/> documentation for "M:Altaxo.Calc.Fit.Curve(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.Int32)"]

y  Double

[Missing <param name="y"/> documentation for "M:Altaxo.Calc.Fit.Curve(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.Int32)"]

f  FuncDouble, Double, Double, Double, Double

[Missing <param name="f"/> documentation for "M:Altaxo.Calc.Fit.Curve(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.Int32)"]

initialGuess0  Double

[Missing <param name="initialGuess0"/> documentation for "M:Altaxo.Calc.Fit.Curve(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.Int32)"]

initialGuess1  Double

[Missing <param name="initialGuess1"/> documentation for "M:Altaxo.Calc.Fit.Curve(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.Int32)"]

initialGuess2  Double

[Missing <param name="initialGuess2"/> documentation for "M:Altaxo.Calc.Fit.Curve(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.Int32)"]

tolerance  Double  (Optional)

[Missing <param name="tolerance"/> documentation for "M:Altaxo.Calc.Fit.Curve(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.Int32)"]

maxIterations  Int32  (Optional)

[Missing <param name="maxIterations"/> documentation for "M:Altaxo.Calc.Fit.Curve(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.Int32)"]

Return Value

ValueTupleDouble, Double, Double

[Missing <returns> documentation for "M:Altaxo.Calc.Fit.Curve(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.Int32)"]

See Also