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;
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);
136 OPENSWATHALGO_DLLAPI std::vector<unsigned int>
computeRank(
const std::vector<double>& w);
OPENSWATHALGO_DLLAPI double RootMeanSquareDeviation(double x[], double y[], int n)
Calculate the RMSD (root means square deviation)
OPENSWATHALGO_DLLAPI double rankedMutualInformation(std::vector< double > &data1, std::vector< double > &data2)
OPENSWATHALGO_DLLAPI double NormalizedManhattanDist(double x[], double y[], int n)
Calculate the normalized Manhattan distance between two arrays.
std::pair< int, double > XCorrEntry
Cross Correlation array contains (lag,correlation) pairs.
Definition: Scoring.h:60
OPENSWATHALGO_DLLAPI XCorrArrayType normalizedCrossCorrelation(std::vector< double > &data1, std::vector< double > &data2, const int &maxdelay, const int &lag)
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 std::vector< unsigned int > computeRank(const std::vector< double > &w)
OPENSWATHALGO_DLLAPI XCorrArrayType::const_iterator xcorrArrayGetMaxPeak(const XCorrArrayType &array)
Find best peak in an cross-correlation (highest apex)
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.
OPENSWATHALGO_DLLAPI XCorrArrayType calcxcorr_legacy_mquest_(std::vector< double > &data1, std::vector< double > &data2, bool normalize)
OPENSWATHALGO_DLLAPI void normalize_sum(double x[], unsigned int n)
divide each element of x by the sum of the vector
Definition: MRMScoring.h:50
OPENSWATHALGO_DLLAPI void normalize(const std::vector< double > &intensities, double normalization_factor, std::vector< double > &normalized_intensities)
Normalize intensities in vector by normalization_factor.
std::vector< XCorrEntry >::const_iterator const_iterator
Definition: Scoring.h:68
const_iterator begin() const
Definition: Scoring.h:71
std::vector< XCorrEntry > data
Definition: Scoring.h:64
iterator end()
Definition: Scoring.h:72
const_iterator end() const
Definition: Scoring.h:73
std::vector< XCorrEntry >::iterator iterator
Definition: Scoring.h:67
iterator begin()
Definition: Scoring.h:70