Description Usage Arguments Value
Compute a differentiable box prior
1 | constraintExp2(p, mu, sigma = 1, k = 0.05, fixed = NULL)
|
p |
Named numeric, the parameter value |
mu |
Named numeric, the prior values, means of boxes |
sigma |
Named numeric, half box width |
k |
Named numeric, shape of box; if 0 a quadratic prior is obtained, the higher k the more box shape, gradient at border of the box (-sigma, sigma) is equal to sigma*k |
fixed |
Named numeric with fixed parameter values (contribute to the prior value but not to gradient and Hessian) |
list with entries: value (numeric, the weighted residual sum of squares),
gradient (numeric, gradient) and
hessian (matrix of type numeric). Object of class objlist.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.