score_fun.cor              package:xcms              R Documentation

_S_c_o_r_i_n_g _f_o_r _M_S/_M_S _s_p_e_c_t_r_a _V_i_a _c_o_r_r_e_l_a_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     A similarity scoring function for MS/MS spectra against a
     reference via correlation.

_U_s_a_g_e:

       score_fun.cor(ref, exp)

_A_r_g_u_m_e_n_t_s:

     ref: An array of numbers for the refference

     exp: An array of numbers for the test

_D_e_t_a_i_l_s:

     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.

_V_a_l_u_e:

   score: Correlation between the two arrays

_A_u_t_h_o_r(_s):

     H. Paul Benton, hpbenton@scripps.edu

_R_e_f_e_r_e_n_c_e_s:

     H. Paul Benton, D.M. Wong, S.A.Strauger, G. Siuzdak "XCMS^2:"
     Analytical Chemistry 2008 DOI:<URL:
     http://pubs.acs.org/doi/abs/10.1021/ac800795f/>

_S_e_e _A_l_s_o:

     'score_fun.distMatrix'

_E_x_a_m_p_l_e_s:

     ## 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)

