|  | OpenMS
    2.6.0
    | 
 
 
  
  
 
Go to the documentation of this file.
   41 #include <OpenMS/OPENSWATHALGO/OpenSwathAlgoConfig.h> 
   42 #include <boost/lambda/casts.hpp> 
   43 #include <boost/lambda/lambda.hpp> 
   64     std::vector<XCorrEntry> 
data;
 
   67     typedef std::vector<XCorrEntry>::iterator 
iterator;
 
  110     OPENSWATHALGO_DLLAPI 
double SpectralAngle(
double x[], 
double y[], 
int n);
 
  115                                                   std::vector<double>& data2, 
bool normalize);
 
  120                                                                    std::vector<double>& data2, 
const int& maxdelay, 
const int& lag);
 
  124                                                                   const std::vector<double>& data2, 
const int& maxdelay, 
const int& lag);
 
  133     OPENSWATHALGO_DLLAPI 
void normalize_sum(
double x[], 
unsigned int n);
 
  136     OPENSWATHALGO_DLLAPI std::vector<unsigned int> 
computeRank(
const std::vector<double>& w);
 
  
OPENSWATHALGO_DLLAPI XCorrArrayType calculateCrossCorrelation(const std::vector< double > &data1, const std::vector< double > &data2, const int &maxdelay, const int &lag)
Calculate crosscorrelation on std::vector data without normalization.
std::vector< XCorrEntry > data
Definition: Scoring.h:64
const_iterator begin() const
Definition: Scoring.h:71
Definition: MRMScoring.h:49
const_iterator end() const
Definition: Scoring.h:73
OPENSWATHALGO_DLLAPI double RootMeanSquareDeviation(double x[], double y[], int n)
Calculate the RMSD (root means square deviation)
iterator end()
Definition: Scoring.h:72
OPENSWATHALGO_DLLAPI void normalize_sum(double x[], unsigned int n)
divide each element of x by the sum of the vector
OPENSWATHALGO_DLLAPI std::vector< unsigned int > computeRank(const std::vector< double > &w)
std::vector< XCorrEntry >::iterator iterator
Definition: Scoring.h:67
OPENSWATHALGO_DLLAPI XCorrArrayType calcxcorr_legacy_mquest_(std::vector< double > &data1, std::vector< double > &data2, bool normalize)
iterator begin()
Definition: Scoring.h:70
std::vector< XCorrEntry >::const_iterator const_iterator
Definition: Scoring.h:68
OPENSWATHALGO_DLLAPI double NormalizedManhattanDist(double x[], double y[], int n)
Calculate the normalized Manhattan distance between two arrays.
OPENSWATHALGO_DLLAPI void standardize_data(std::vector< double > &data)
Standardize a vector (subtract mean, divide by standard deviation)
OPENSWATHALGO_DLLAPI double SpectralAngle(double x[], double y[], int n)
Calculate the Spectral angle (acosine of the normalized dotproduct)
OPENSWATHALGO_DLLAPI XCorrArrayType::const_iterator xcorrArrayGetMaxPeak(const XCorrArrayType &array)
Find best peak in an cross-correlation (highest apex)
OPENSWATHALGO_DLLAPI XCorrArrayType normalizedCrossCorrelation(std::vector< double > &data1, std::vector< double > &data2, const int &maxdelay, const int &lag)
std::pair< int, double > XCorrEntry
Cross Correlation array contains (lag,correlation) pairs.
Definition: Scoring.h:60
OPENSWATHALGO_DLLAPI void normalize(const std::vector< double > &intensities, double normalization_factor, std::vector< double > &normalized_intensities)
Normalize intensities in vector by normalization_factor.
OPENSWATHALGO_DLLAPI double rankedMutualInformation(std::vector< double > &data1, std::vector< double > &data2)