62   static std::vector<Size> calculateIntensityRankInMZWindow(
const std::vector<double>& mz, 
const std::vector<double>& intensities, 
double mz_window);
 
   77   static std::vector<std::vector<Size> > calculateRankMap(
const PeakMap& peak_map, 
double mz_window = 100);
 
   86   static std::map<Size, PeakSpectrum > calculatePeakLevelSpectra(
const PeakSpectrum& spec, 
const std::vector<Size>& ranks, 
Size min_level = 1, 
Size max_level = 9);
 
   99   static double computePScore(
double fragment_mass_tolerance, 
bool fragment_mass_tolerance_unit_ppm, 
const std::map<Size, PeakSpectrum>& peak_level_spectra, 
const std::vector<PeakSpectrum>& theo_spectra, 
double mz_window = 100.0);
 
  109   static double computePScore(
double fragment_mass_tolerance, 
bool fragment_mass_tolerance_unit_ppm, 
const std::map<Size, PeakSpectrum>& peak_level_spectra, 
const PeakSpectrum& theo_spectrum, 
double mz_window = 100.0);
 
  113   static double massCorrectionTerm(
double mass);
 
  117   static double cleavageCorrectionTerm(
Size cleavages, 
bool consecutive_cleavage);
 
  121   static double modificationCorrectionTerm(
Size modifications);