Skip to contents

Check for nearest value in a vector.

Usage

nearest_position(vector, x)

Arguments

vector

Input vector

x

Value to search

Value

Nearest value in a vector