In file Mt.d:

I32 MtVectorBinarySearch

(float a, float b[], I32 ib, I32 n,
  I32* exact)

Finds the index of the data that matches the data.

Documentation

Finds the index of the data that matches the data. If an exact march is not found, interpolation is used to identify the index that most closely matches the target value.
Parameters:
a - the value we are searching for.
b - the input data.
ib - the stride through b.
n - the number of elements in b.
exact - returns TRUE if an exact match is found, otherwise FALSE.
Returns:
index the index of the match.

Alphabetic index HTML hierarchy of classes or Java


Copyright 1993, 1994 Geophysical Software, Inc.
2603 Peninsulas Drive, Missouri City Texas 77459, (713)438-0583.
All Rights Reserved Company Confidential
Prepared for University of Minnesota, October, 2001