Function that dispatches the function supplied as argument using different variables depending on the class of the spectrum argument.
f_dispatcher_spct(x, .fun, ...)
an object of class "generic_spct"
an R function with signature function(x, ...)
additional arguments passed to f