This function calculates and output the similarity score for a peak while a reference spectrum is provided. The score is based on spectral matching and RI difference between the true peak and the reference.
a numeric vector of intensity values for the measure, i.e. true, spectrum.
refSpec
a numeric vector of the intensity values for the reference spectrum.
trueRI
a numeric value of the measured, i.e. true, retention index
refRI
a numeric value of the reference retention index
deltaRI
a numeric value for the penalty on the retention index similarity score
Value
numeric
Details
By calling getScore(), this function calculates the similarity score for multiple peaks in multiple runs. This is performed by using spectral and retention index information together.