Constructs a GoodnessOfFit instance from the given OneVariableFunctionFitter which uses the LevenbergMarquardtMinimizer.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public GoodnessOfFit(
	OneVariableFunctionFitter<LevenbergMarquardtMinimizer> fitter,
	DoubleVector x,
	DoubleVector y,
	DoubleVector solution
)
Visual Basic (Declaration)
Public Sub New ( _
	fitter As OneVariableFunctionFitter(Of LevenbergMarquardtMinimizer), _
	x As DoubleVector, _
	y As DoubleVector, _
	solution As DoubleVector _
)
Visual C++
public:
GoodnessOfFit(
	OneVariableFunctionFitter<LevenbergMarquardtMinimizer^>^ fitter, 
	DoubleVector^ x, 
	DoubleVector^ y, 
	DoubleVector^ solution
)

Parameters

fitter
Type: CenterSpace.NMath.Analysis..::.OneVariableFunctionFitter<(Of <(LevenbergMarquardtMinimizer>)>)
A one variable function fitter.
x
Type: CenterSpace.NMath.Core..::.DoubleVector
The x data used to fit the model.
y
Type: CenterSpace.NMath.Core..::.DoubleVector
The y data used to fit the model.
solution
Type: CenterSpace.NMath.Core..::.DoubleVector
The solution found by the fitter.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.MismatchedSizeException Thrown if x and y are not the same length.

See Also