Least-Squares fitting the points (x,y) to an exponential y : x -> a*exp(r*x),
returning its best fitting parameters as (a, r) tuple.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static (double A, double R) Exponential(
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,
DoubleThe fitted exponential parameters.
See Also