Description Usage Arguments Value Author(s)
View source: R/optimbase.proj2bnds.R
This function determines if all elements of a point estimate are within the defined bounds. In the case one or more parameter estimates are not, the function projects those to their corresponding bounds.
1 | optimbase.proj2bnds(this = NULL, x = NULL)
|
this |
An optimization object. |
x |
A point estimate. |
Return a list with the following elements:
The optimization object.
A vector of updated paremeter estimes. The ith element of the vector is:
x[i]
if this$boundsmin[i]
< x[i]
<
this$boundsmax[i],
this$boundsmin[i]
if x[i] <= this$boundsmin[i],
this$boundsmax[i]
if this$boundsmax[i]
<= x[i].
Author of Scilab optimbase module: Michael Baudin (INRIA - Digiteo)
Author of R adaptation: Sebastien Bihorel (sb.pmlab@gmail.com)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.