3 %> @brief Returns index of peak closest to @c a.
7 %> @param db Data structure obtained from db_peaks.m
8 %> @param a can be either the index of a wavenumber or the wavenumber itself, because it is easy to distinguish one from the
10 %> @
return result is an index of an element in db, such
as db.names(result), db.centres(result) of db.indexes(result)
19 v = db.indexes(end:-1:1);
27 elseif (a-v(i)) < (v(i-1)-a)
40 result = length(v)+1-result;
function peak_closest(in db, in a)
Analysis Session (AS) base class.