rUnifSplit | R Documentation |
Split bins randomly and uniformly
rUnifSplit(bin, minExp = 0, squarify = FALSE)
bin |
a bin to be split with elements 'x', 'y', 'depth', 'bnds' (list with elements 'x' and 'y'), 'expn', 'n' |
minExp |
numeric giving the minimum expected count allowed in a bin |
squarify |
logical value, should we force splitting on the longer side? |
This function samples a coordinate uniformly along a random margin and splits a bin at that coordinate. In contrast to maxScoreSplit with randScores, this can introduce splits at locations other than the points.
A list of two bins resulting from the split of 'bin' at a random location on a random margin
Chris Salahub
bin <- makeBin(x = 1:10, y = sample(1:10))
rUnifSplit(bin, minExp = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.