apply function

apply Computes summary statistics for the spectra of a hyperSpec object.