38 #include <boost/math/special_functions/fpclassify.hpp>  
   39 #include <boost/numeric/conversion/cast.hpp> 
   41 #include <OpenMS/OPENSWATHALGO/OpenSwathAlgoConfig.h> 
  115     void initializeXCorrMatrix(
const std::vector< std::vector< double > >& data);
 
  122     void initializeXCorrContrastMatrix(
OpenSwath::IMRMFeature* mrmfeature, 
const std::vector<String>& native_ids_set1, 
const std::vector<String>& native_ids_set2);
 
  125     void initializeXCorrPrecursorMatrix(
OpenSwath::IMRMFeature* mrmfeature, 
const std::vector<String>& precursor_ids);
 
  128     void initializeXCorrPrecursorContrastMatrix(
OpenSwath::IMRMFeature* mrmfeature, 
const std::vector<String>& precursor_ids, 
const std::vector<String>& native_ids);
 
  131     void initializeXCorrPrecursorContrastMatrix(
const std::vector< std::vector< double > >& data_precursor, 
const std::vector< std::vector< double > >& data_fragments);
 
  134     void initializeXCorrPrecursorCombinedMatrix(
OpenSwath::IMRMFeature* mrmfeature, 
const std::vector<String>& precursor_ids, 
const std::vector<String>& native_ids);
 
  141     double calcXcorrCoelutionScore();
 
  150     double calcXcorrCoelutionWeightedScore(
const std::vector<double>& normalized_library_intensity);
 
  153     double calcXcorrContrastCoelutionScore();
 
  156     std::vector<double> calcSeparateXcorrContrastCoelutionScore();
 
  159     double calcXcorrPrecursorCoelutionScore();
 
  166     double calcXcorrPrecursorContrastCoelutionScore();
 
  169     double calcXcorrPrecursorCombinedCoelutionScore();
 
  177     double calcXcorrShapeScore();
 
  187     double calcXcorrShapeWeightedScore(
const std::vector<double>& normalized_library_intensity);
 
  190     double calcXcorrContrastShapeScore();
 
  193     std::vector<double> calcSeparateXcorrContrastShapeScore();
 
  196     double calcXcorrPrecursorShapeScore();
 
  199     double calcXcorrPrecursorContrastShapeScore();
 
  202     double calcXcorrPrecursorCombinedShapeScore();
 
  206       const std::vector<TransitionType>& transitions, 
double& correlation, 
 
  207       double& norm_manhattan, 
double& manhattan, 
double& dotprod, 
 
  208       double& spectral_angle, 
double& rmsd);
 
  211     static double calcRTScore(
const PeptideType& peptide, 
double normalized_experimental_rt);
 
  217         std::vector<OpenSwath::ISignalToNoisePtr>& signal_noise_estimators);
 
  220         std::vector<OpenSwath::ISignalToNoisePtr>& signal_noise_estimators);
 
  223     const std::vector< std::vector<double> > & getMIMatrix() 
const;
 
  227     const std::vector< std::vector<double> > & getMIContrastMatrix() 
const;
 
  231     const std::vector< std::vector<double> > & getMIPrecursorContrastMatrix() 
const;
 
  235     const std::vector< std::vector<double> > & getMIPrecursorCombinedMatrix() 
const;
 
  242     void initializeMIContrastMatrix(
OpenSwath::IMRMFeature* mrmfeature, std::vector<String> native_ids_set1, std::vector<String> native_ids_set2);
 
  248     void initializeMIPrecursorContrastMatrix(
OpenSwath::IMRMFeature* mrmfeature, 
const std::vector<String>& precursor_ids, 
const std::vector<String>& native_ids);
 
  251     void initializeMIPrecursorCombinedMatrix(
OpenSwath::IMRMFeature* mrmfeature, 
const std::vector<String>& precursor_ids, 
const std::vector<String>& native_ids);
 
  253     double calcMIScore();
 
  254     double calcMIWeightedScore(
const std::vector<double>& normalized_library_intensity);
 
  255     double calcMIPrecursorScore();
 
  256     double calcMIPrecursorContrastScore();
 
  257     double calcMIPrecursorCombinedScore();
 
  258     std::vector<double> calcSeparateMIContrastScore();