bootstrap bounding boxes in order to produce smooth box distribution
1 2 | bootstrap_boxes(x, scale = 2, size = nrow(x) * 10,
quantiles = c(0.05, 0.95))
|
x |
input 2-d matrix: first column is wisth, second column is height of the bounding box |
scale |
how to rescale each box. For example 2 means it will randomly dowscaled-upscaled within a range of 1/2 to 2. Which means it's size will be within a range being 2x smaller to 2x larger then original bounding box |
size |
size of bootstrapped result |
quantiles |
keep resulting samples within these quantiles of the original distribution |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.