Click or drag to resize

NonlinearObjectiveFunctionNonAllocatingSetObserved Method

Sets the observed data to fit.

Namespace: Altaxo.Calc.Optimization.ObjectiveFunctions
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public void SetObserved(
	IReadOnlyList<double> observedX,
	IReadOnlyList<double> observedY,
	IReadOnlyList<double>? weights = null
)

Parameters

observedX  IReadOnlyListDouble
The observed values of the independent variable.
observedY  IReadOnlyListDouble
The observed values of the dependent variable.
weights  IReadOnlyListDouble  (Optional)
Optional weight values for each observation.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when observedX or observedY is .
ArgumentExceptionThrown when input arrays have inconsistent lengths or contain invalid weights.
See Also