Description Usage Arguments Value Examples
For use with cpm
. See getting started vignette for details.
1 | make_oracle(oracle, region = c(-Inf, Inf))
|
oracle |
oracle function, returns TRUE if point is in constrained region, FALSE otherwise. |
region |
region over which constraint is applied. |
function that returns TRUE if point satisfies oracle, FALSE otherwise.
1 2 3 4 5 | ## Not run:
constraint_oracle <- make_oracle( function(b) { b[1,] > 1 })
# In general, variable b should be treated as a matrix.
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.