Learn R Programming

icmstate (version 0.2.0)

binary_search_larger: Binary search - Larger

Description

Find index of first value larger than x in a sorted array

Usage

binary_search_larger(v, data)

Value

index of first value larger than data -1, -1 otherwise

Arguments

v

- sorted vector instance

data

- value to search