MtxVec VCL
|
Finds exact or closest index match for X in sorted object values using binary search.
True and exact index in XIndex, if found and False and the index of the next bigger or smaller value in XIndex, if not found.
The data in the vector must be sorted in ascending order for this function to work correctly. The closest match is the index of first bigger or smaller value in the array.
To ensure bigger value write:
To ensure smaller value write:
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
|
What do you think about this topic? Send feedback!
|