Open richfitz opened 7 years ago
For things like #9, the pattern of recreating a distribution seems really ugly. Better might be to replace parameters. So the workflow would look more like:
ll2 <- function(param, obj, x) { obj$d(x, scale = param[[1]], rate = param[[2]]) }
or
ll2 <- function(param, obj, x) { obj$d(x, parameters = param) }
Thoughts @thibautjombart?
For things like #9, the pattern of recreating a distribution seems really ugly. Better might be to replace parameters. So the workflow would look more like:
or
Thoughts @thibautjombart?