get_index¶
- threadcount.fit.get_index(array, value)[source]¶
Determine the index of ‘array’ which is closest to value.
- Parameters:
- Returns:
The index (or indices) of array where the value is closest to the search value.
- Return type:
Examples
>>> get_index([10,11,12,13,14],[13,22]) [3, 4] >>> get_index(4,[3,0]) [0, 0] >>> get_index([4,0],10) 0