35 #ifndef OPENMS_ANALYSIS_OPENSWATH_OPENSWATHALGO_ALGO_SCORING_H 36 #define OPENMS_ANALYSIS_OPENSWATH_OPENSWATHALGO_ALGO_SCORING_H 42 #include <OpenMS/ANALYSIS/OPENSWATH/OPENSWATHALGO/OpenSwathAlgoConfig.h> 93 OPENSWATHALGO_DLLAPI
double SpectralAngle(
double x[],
double y[],
int n);
98 std::vector<double>& data2,
bool normalize);
103 std::vector<double>& data2,
int maxdelay,
int lag);
107 std::vector<double>& data2,
int maxdelay,
int lag);
116 OPENSWATHALGO_DLLAPI
void normalize_sum(
double x[],
unsigned int n);
122 #endif // OPENMS_ANALYSIS_OPENSWATH_OPENSWATHALGO_ALGO_SCORING_H std::map< int, double > XCorrArrayType
Cross Correlation array.
Definition: Scoring.h:57
OPENSWATHALGO_DLLAPI XCorrArrayType normalizedCrossCorrelation(std::vector< double > &data1, std::vector< double > &data2, int maxdelay, int lag)
OPENSWATHALGO_DLLAPI XCorrArrayType calculateCrossCorrelation(std::vector< double > &data1, std::vector< double > &data2, int maxdelay, int lag)
Calculate crosscorrelation on std::vector data without normalization.
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 void standardize_data(std::vector< double > &data)
Standardize a vector (subtract mean, divide by standard deviation)
OPENSWATHALGO_DLLAPI void normalize_sum(double x[], unsigned int n)
divide each element of x by the sum of the vector
Definition: MRMScoring.h:51
OPENSWATHALGO_DLLAPI double RootMeanSquareDeviation(double x[], double y[], int n)
Calculate the RMSD (root means square deviation)
OPENSWATHALGO_DLLAPI double NormalizedManhattanDist(double x[], double y[], int n)
Calculate the normalized Manhattan distance between two arrays.
OPENSWATHALGO_DLLAPI double SpectralAngle(double x[], double y[], int n)
Calculate the Spectral angle (acosine of the normalized dotproduct)
OPENSWATHALGO_DLLAPI XCorrArrayType::iterator xcorrArrayGetMaxPeak(XCorrArrayType &array)
Find best peak in an cross-correlation (highest apex)
OPENSWATHALGO_DLLAPI XCorrArrayType calcxcorr_legacy_mquest_(std::vector< double > &data1, std::vector< double > &data2, bool normalize)