Click or drag to resize

FitPower Method

Least-Squares fitting the points (x,y) to a power y : x -> a*x^b, returning its best fitting parameters as (a, b) tuple.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static (double A, double B) Power(
	double[] x,
	double[] y,
	DirectRegressionMethod method = DirectRegressionMethod.QR
)

Parameters

x  Double
The x values of the sample points.
y  Double
The y values of the sample points.
method  DirectRegressionMethod  (Optional)
The direct regression method to use.

Return Value

ValueTupleDouble, Double
The fitted power-law parameters.
See Also