score_fun.cor {xcms} | R Documentation |
A similarity scoring function for MS/MS spectra against a reference via correlation.
score_fun.cor(ref, exp)
ref |
An array of numbers for the refference |
exp |
An array of numbers for the test |
A score system using correlation analysis to correlate two arrays. If the arrays are a different length then the system will buffer the shorter one with 0s.
score |
Correlation between the two arrays |
H. Paul Benton, hpbenton@scripps.edu
H. Paul Benton, D.M. Wong, S.A.Strauger, G. Siuzdak "XCMS^2:" Analytical Chemistry 2008 DOI:http://pubs.acs.org/doi/abs/10.1021/ac800795f/
## Not run: score<-xcms:::score_fun.cor(rnorm(10), rnorm(10)) score a<-abs(rnorm(5)) a[2]<-xcms:::ppmDev(a[2], 30) score<-xmcs:::score_fun.cor() score ## End(Not run)