create_width_balanced_cover | R Documentation |
Generate a cover of an interval [a, b]
with uniformly sized and spaced subintervals.
create_width_balanced_cover(min_val, max_val, num_bins, percent_overlap)
min_val |
The left endpoint |
max_val |
The right endpoint |
num_bins |
The number of cover intervals with which to cover the interval. A positive integer. |
percent_overlap |
How much overlap desired between the cover intervals
(the percent of the intersection of each interval with its immediate
neighbor relative to its length, e.g., |
A 2D numeric array.
left_ends - The left endpoints of the cover intervals.
right_ends - The right endpoints of the cover intervals.
# Cover `[0, 100]` in 10 patches with 15% overlap
create_width_balanced_cover(min_val=0, max_val=100, num_bins=10, percent_overlap=15)
# Cover `[-11.5, 10.33]` in 100 patches with 2% overlap
create_width_balanced_cover(-11.5, 10.33, 100, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.