Description Usage Arguments Value Author(s) References See Also

Matching factor functions to describe similarity of two vectors. This function may be useful to match an estimated mass spectrum against mass spectra of known compounds, in order to identify the compound represented by the estimated mass spectrum.

1 | ```
matchFactor(u, s, type="dot")
``` |

`u` |
numeric vector of length |

`s` |
numeric vector of length |

`type` |
character vector describing the matching factor function
to apply; the choices are |

numeric between 0 and 1 representing the matching factor; vectors
that are more similar have a larger matching factor. Note that if both
`u`

and `s`

are all zero, we let the matching factor be 1; if one and
only one of `u`

and `s`

are all zero, we let the matching
factor be 0.

Katharine M. Mullen

Alfassi ZB. On the normalization of a mass spectrum for comparison of two spectra. Journal of the American Society for Mass Spectrometry 2004; 15:385-387.

Stein SE, Scott DR. Optimization and testing of mass spectral library search algorithms for compound identication. Journal of the American Society for Mass Spectrometry 1994; 5:859-866.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.