Generate a new point using LRPS
Source:R/lrps-class.R, R/mini_balls.R, R/multi_ellipsoid.R, and 5 more
propose.RdDeveloper-facing function, used when creating your own ernest_lrps subclass.
When specifying your subclass, you must implement this method to define how your sampler generates new points that satisfy the likelihood constraint.
Usage
propose(x, original = NULL, criterion = -Inf)
# S3 method for class 'mini_balls'
propose(x, original = NULL, criterion = -Inf)
# S3 method for class 'multi_ellipsoid'
propose(x, original = NULL, criterion = -Inf)
# S3 method for class 'no_underrun'
propose(x, original = NULL, criterion = -Inf)
# S3 method for class 'rwmh_cube'
propose(x, original = NULL, criterion = -Inf)
# S3 method for class 'slice_rectangle'
propose(x, original = NULL, criterion = -Inf)
# S3 method for class 'unif_cube'
propose(x, original = NULL, criterion = -Inf)
# S3 method for class 'unif_ellipsoid'
propose(x, original = NULL, criterion = -Inf)Arguments
- x
An
ernest_lrpsobject.- original
Optional double vector. Points in the prior space used to start the proposal process. If
NULL, a new point is generated by sampling from the unconstrained unit cube (seeunif_cube()).- criterion
Double scalar. A log-likelihood value that proposed points must satisfy.