infimum | R Documentation |
get the greatest lower bound of each number in one set from the other
infimum(s1, s2)
s1 |
set of numbers to find lower bounds for |
s2 |
set of numbers among which to find the greatest lower bounds. |
the algorithm run time is O(n log(n)), where n = max(length(s1), length(s2))
vector rv with same type as s2 and length as s1, with rv[i] = max(s2[s2 <= s1[i]]), if any(s2 <= s1[i]); or NA, if all(s2 > s1[i]) i.e. for each number in s1, its greatest lower bound among the numbers in s2, or NA if none exists.
John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.