carat
latest
Installation
Tutorial
Examples
Annotations
Features
Clustering
Display
Util
Signal segmentation
Time-frequency
Miscellaneous
carat.util.example_audio_file
carat.util.example_beats_file
carat.util.find_nearest
carat.util.deltas
carat
Docs
»
Util
»
carat.util.find_nearest
Edit on GitHub
carat.util.find_nearest
¶
carat.util.
find_nearest
(
array
,
value
)
[source]
¶
Find index of the nearest value of an array to a given value
Parameters:
array (numpy.ndarray)
:
array
value (float)
:
value
Returns:
idx (int)
:
index of nearest value in the array
Read the Docs
v: latest
Versions
latest
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.