Sampler visualization

A function to visualize the sampler is provided (mostly for debugging purposes) through an extension which is loaded when Makie.jl is present in the environment.

AdaptiveRejectionSampling.hullplot — Function
hullplot(x, sampler, ...)

Plots the sampler (upper/lower hulls and abscissae) as well as the target function.

Keyword arguments

  • abscissae = true
  • target = false
  • upper_hull = true
  • lower_hull = true
  • target_linewidth = @inherit linewidth
  • upper_hull_linewidth = @inherit linewidth
  • lower_hull_linewidth = @inherit linewidth
  • target_label = "Target"
  • upper_hull_label = "Upper hull"
  • lower_hull_label = "Lower hull"
  • abscissae_label = "Abscissae"
source