>  Docs Center  >  Libraries  >  Daithi  >  NEAREST_INDEX
Libraries

NEAREST_INDEX

NEAREST_INDEX

Name


  Nearest_Index

Purpose


  Search for the index of the value nearest to x in the vector mx.

Category


  Array

Calling Sequence


  result = Nearest_Index(x,xarray)

Inputs


  x: a value in the range [Min(xarray),Max(xarray)]
  xarray: an idl array (typically a vector)

Outputs


  result: The index of the value in xarray that is closest to x.

Modification History


  Written by: Edward C. Wiebe, 2002-11-29.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us