cheminfo / chromatography

Tools for storing, search and analyze GC/MS spectra
https://cheminfo.github.io/chromatography
MIT License
9 stars 5 forks source link

Improve getClosestTime #24

Closed lpatiny closed 7 years ago

lpatiny commented 7 years ago

I think we may assume that the time is a sorted array in increasing value

The algorithm could be improved in order to take this into account and make a dichotomic approach. Pretty sure that there is a library that must do this