Binning of histograms and accessing spectrum manipulation functions