infimum: get the greatest lower bound of each number in one set from...

Description Usage Arguments Details Value Author(s)

Description

get the greatest lower bound of each number in one set from the other

Usage

1
infimum(s1, s2)

Arguments

s1

set of numbers to find lower bounds for

s2

set of numbers among which to find the greatest lower bounds.

Details

the algorithm run time is O(n log(n)), where n = max(length(s1), length(s2))

Value

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.

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


jbrzusto/motusServer documentation built on May 19, 2019, 8:19 a.m.