IMSL C# Numerical Library

NonlinearRegression.Solve Method 

Solves the least squares problem and returns the regression coefficients.

public virtual double[] Solve(
   IFunction F
);

Parameters

F
An NonlinearRegression.IFunction whose coefficients are to be computed.

Return Value

A double array containing the regression coefficients.

Exceptions

Exception Type Condition
TooManyIterationsException is thrown when the number of allowed iterations is exceeded
NegativeFreqException is thrown when the specified frequency is negative
NegativeWeightException is thrown when the weight is negative

See Also

NonlinearRegression Class | Imsl.Stat Namespace