Description Usage Arguments Details Value Examples
This plotter analyses if the length of the jumps the sampler is making (l) belongs to a Levy probability density distribution, P(l) \approx l^{-μ}.
1 |
plot |
Boolean. plot Boolean. Whether to return a plot or the elements used to make it. |
Values of μ \approx 2 have been used to describe foraging in animals, and produce the most effective foraging (Viswanathan et al., 1999). See Zhu et al. 2018 for a comparison of Levy Flight and PSD measures for different samplers in multimodal representations.
@param chain Matrix of n x d dimensions, n = iterations, d = dimensions
If plot is true, it returns a simple plot with the log absolute difference in estimates and their frequency, as well as an estimate for the μ parameter. If false it returns a list with what's required to make the plot.
1 2 3 4 | target <- distr::Norm()
pd_func <- make_distr_pdf(target)
chain1 <- sampler_mcmc(pd_func, 0, sigma_prop = 1)
plot_levy(chain1[[1]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.