Solves the least squares problem and returns the regression coefficients.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public virtual double[] Solve(
	NonlinearRegression..::.IFunction F
)
Visual Basic (Declaration)
Public Overridable Function Solve ( _
	F As NonlinearRegression..::.IFunction _
) As Double()
Visual C++
public:
virtual array<double>^ Solve(
	NonlinearRegression..::.IFunction^ F
)

Parameters

F
Type: Imsl.Stat..::.NonlinearRegression..::.IFunction
An NonlinearRegression..::.IFunction whose coefficients are to be computed.

Return Value

A double array containing the regression coefficients.

Exceptions

ExceptionCondition
Imsl.Stat..::.TooManyIterationsException is thrown when the number of allowed iterations is exceeded
Imsl.Stat..::.NegativeFreqException is thrown when the specified frequency is negative
Imsl.Stat..::.NegativeWeightException is thrown when the weight is negative
Imsl.Stat..::.NoProgressException is thrown if the algorithm is not making any progress.

See Also