Constructs a GoodnessOfFit instance from the given OneVariableFunctionFitter.

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

Syntax

C#
public static GoodnessOfFit GetGoodnessOfFit<M>(
	OneVariableFunctionFitter<M> fitter,
	DoubleVector x,
	DoubleVector y,
	DoubleVector solution
)
where M : new(), INonlinearLeastSqMinimizer
Visual Basic (Declaration)
Public Shared Function GetGoodnessOfFit(Of M As {New, INonlinearLeastSqMinimizer}) ( _
	fitter As OneVariableFunctionFitter(Of M), _
	x As DoubleVector, _
	y As DoubleVector, _
	solution As DoubleVector _
) As GoodnessOfFit
Visual C++
public:
generic<typename M>
where M : gcnew(), INonlinearLeastSqMinimizer
static GoodnessOfFit^ GetGoodnessOfFit(
	OneVariableFunctionFitter<M>^ fitter, 
	DoubleVector^ x, 
	DoubleVector^ y, 
	DoubleVector^ solution
)

Parameters

fitter
Type: CenterSpace.NMath.Analysis..::.OneVariableFunctionFitter<(Of <(M>)>)
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.

Type Parameters

M

[Missing <typeparam name="M"/> documentation for "M:CenterSpace.NMath.Stats.GoodnessOfFit.GetGoodnessOfFit``1(CenterSpace.NMath.Analysis.OneVariableFunctionFitter{``0},CenterSpace.NMath.Core.DoubleVector,CenterSpace.NMath.Core.DoubleVector,CenterSpace.NMath.Core.DoubleVector)"]

Exceptions

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

See Also