score_fun {xcms} | R Documentation

## Scoring for MS/MS spectra

### Description

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

### Usage

    score_fun(ref, exp, ppmval)

### Arguments

`ref` | An array of numbers for the refference
`exp` | An array of numbers for the test
`ppmval` | Error to match to in ppm

### Details

A simple scoring function to score two arrays of numbers and give a percentage match between the two. Uses a a distance and similarity matrix score system. When the two scores are calculated the percentage score is calculated from the theoritical maximum score and the theoritical minimum score.

### Value

`score` | Percentage score between the two arrays

### Author(s)

H. Paul Benton, hpbenton@scripps.edu

### References

H. Paul Benton, D.M. Wong, S.A.Strauger, G. Siuzdak "XCMS^2:" Analytical Chemistry 2008

[Package xcms version 1.14.1 Index]