optimbase.proj2bnds {optimbase} | R Documentation |
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. |
x |
A point estimate. |
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]
ifthis$boundsmin[i]
<x[i]
<this$boundsmax[i],
-
this$boundsmin[i]
if x[i] <=this$boundsmin[i],
-
this$boundsmax[i]
ifthis$boundsmax[i]
<= x[i].
-
Author(s)
Author of Scilab optimbase module: Michael Baudin (INRIA - Digiteo)
Author of R adaptation: Sebastien Bihorel (sb.pmlab@gmail.com)
[Package optimbase version 1.0-10 Index]