Parameter values are check for a proposed stepsize to ensure that they remain within limits. If not, the stepsize is adjusted to keep within the limits.
stepchk(oldstep, cvec, deltac, limwrd, ind, climit = 50 * c(-rep(1, ncvec),
rep(1, ncvec)), active = 1:ncvec, dbgwrd)
A nonnegative step size for a linear search.
A positive or zero step size for a line search
A numeric or matrix parameter vector.
A vector defining a research direction of the same length as cvec
.
A logical vector of length 2 indicating whether a lower and/or upper boundary is rached by a step.
An integer that is normally 0 but is 1 if an upper boundary has been reached twice.
A two-column matrix with first dimension that of cvec
indicating the lower and upper boundaries for parameter vector values.
A logical vector with length that of cvec
indicating which parmeter values are fixed (FALSE) or free to be changed (TRUE).
An integer controlling the amount of information to display for each step.
Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009), Functional data analysis with R and Matlab, Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2005), Functional Data Analysis, 2nd ed., Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2002), Applied Functional Data Analysis, Springer, New York.