You are here: Symbol Reference > Dew.Stats Namespace > Regress Class > Regress Methods > NLinRegress Method > NLinRegress Method (TVec, TVec, TRegressFun, TDeriveProc, TVec, TVec, TVec, TOptMethod, TOptStopReason, TVec, TVec, boolean, Integer, TSample, TSample, TStrings)
Dew Stats for .NET
Contents
PreviousUpNext
Regress.NLinRegress Method (TVec, TVec, TRegressFun, TDeriveProc, TVec, TVec, TVec, TOptMethod, TOptStopReason, TVec, TVec, boolean, Integer, TSample, TSample, TStrings)

Non-linear regression with lower and upper bounds.

C#
public int NLinRegress(TVec X, TVec Y, TRegressFun RegFun, TDeriveProc DeriveProc, TVec B, TVec BLowerB, TVec BUpperB, TOptMethod Method, ref TOptStopReason StopReason, TVec Weights, TVec YCalc, bool SoftSearch, int MaxIter, double Tol, double GradTol, TStrings Verbose);
Parameters
Parameters 
Description 
Vector of dependent variable. 
Vector of independent variable. 
RegFun 
Regression function. 
DeriveProc 
Procedure to calculate the derivatives of RegFun. You can define the exact derivative or use routine as numerical approximation. 
Holds initial estimate for regression parameters. After the call to NLinRegress b returns calculated regression parameters. 
BLowerB 
Holds lower bounds for regression parameters. If there are no lower bounds, set BLowerB values to -INF. 
BUpperB 
Holds upper bounds for regression parameters. If there are no upper bounds, set BUpperB values to +INF. 
StopReason 
Returns why regression parameters search stopped (see MtxVec.hlp TOptStopReason type to learn more about different stop reasons). 
Weights 
Weights (optional). 
YCalc 
Returns calculated values (optional). 
SoftSearch 
If true, internal line search algoritm will use soft line search method. Set this parameter to true if you're using numerical approximation for derivative. If this parameter is set to false, internal line search algorithm will use exact line search method. Set this parameter to false if you're using *exact* derivative. 
MaxIter 
Maximum allowed numer of allowed iterations. 
Tol 
Desired regression parameters tolerance. 
GradTol 
Minimum allowed gradient C-Norm. 
OptMethod 
Defines which optimization method will be used to find regression parameters (see MtxVec.hlp TOptMethod type to learn more about this). 
Returns

Number of iterations needed to calculate regression parameters with specified tolerance.

General non-linear regression with lower and upper bounds for regression coefficients.

What do you think about this topic? Send feedback!
Copyright (c) 1999-2010 by Dew Research. All rights reserved.