optimbase.proj2bnds:
Projection of Point Estimate to Bounds
Description
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.
Usage
optimbase.proj2bnds(this = NULL, x = NULL)
Arguments
this
An optimization object.
Value
Return a list with the following elements:
- this
- The optimization object.
- p
- 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].="" <="" li="">
=>