watex.utils.funcutils.find_close_position#
- watex.utils.funcutils.find_close_position(refarr, arr)[source]#
Get the close item from arr in the reference array refarr.
- Parameters
arr – array-like 1d, Array to extended with fill value. It should be shorter than the refarr.
refarr – array-like- the reference array. It should have a greater length than the array arr.
- Returns
generator of index of the closest position in refarr.