Click or drag to resize

FitCurve(Double, Double, FuncDouble, Double, Double, Double, Double, Int32) Method

Non-linear least-squares fitting the points (x,y) to an arbitrary function y : x -> f(p, x), returning its best fitting parameter p.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double Curve(
	double[] x,
	double[] y,
	Func<double, double, double> f,
	double initialGuess,
	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.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.Int32)"]

f  FuncDouble, 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.Int32)"]

initialGuess  Double

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

Return Value

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.Int32)"]

See Also