uniMaxScoreSplit | R Documentation |
A function which splits a bin based on the location maximizing a score function.
uniMaxScoreSplit(bin, scorer, minExp = 5)
bin |
a bin to be split with elements 'x', 'y', 'depth', 'bnds' (list with elements 'x' and 'y'), 'expn', 'n' |
scorer |
function which accepts a numeric vector of potential split coordinates and the bounds of 'bin' and returns a numeric vector of scores for each |
minExp |
numeric giving the minimum expected count allowed in a bin |
This function is the univariate version of 'maxScoreSplit' and so is considerably simpler. It assumes the variable to be split is named 'x' in the bin, and the other variable is to remain unsplit.
A list of two bins resulting from the split of 'bin' at the maximum split location along y
Chris Salahub
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.