Description Usage Arguments Details Value
Big fat warning: binning_func returns indices for C++ array indexing. Indexing starts from zero in C++. If you need to use the result of binning_func() in R, add + 1L to the result.
1 | create_binning_func(r_vec)
|
r_vec |
The radius vector which defines the endpoints of the bins. |
The bins are exclusive from left and inclusive from right.
If the first r_vec value is zero, the index for that "bin" matching the r-interval [0, 0] should never be given by the returned function.
Also varying step size in r_vec is handled correctly.
A function that turns the distance between a pair of points into a bin index.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.