Learn R Programming

icmstate (version 0.2.0)

binary_search_larger_equal: Binary search - Larger or equal to

Description

Find index of first value larger or equal to x in a sorted array

Usage

binary_search_larger_equal(v, data)

Value

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

Arguments

v

- sorted vector instance

data

- value to search