binary_search_larger_equal {icmstate}R Documentation

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)

Arguments

v

- sorted vector instance

data

- value to search

Value

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


[Package icmstate version 0.2.0 Index]