find.tol: An internal function that is not supposed to be directly...

Description Usage Arguments Details Value Author(s) Examples

View source: R/find.tol.R

Description

The function finds the tolerance level in m/z from a given vector of observed m/z values.

Usage

1
find.tol(a, uppermost=1e-4, aver.bin.size=4000, min.bins=50, max.bins=200)

Arguments

a

The vector of observed m/z values.

uppermost

Consider only m/z diffs smaller than this value.

aver.bin.size

The average bin size to determine the number of equally spaced points in the kernel density estimation.

min.bins

the minimum number of bins to use in the kernel density estimation. It overrides aver.bin.size when too few observations are present.

max.bins

the maximum number of bins to use in the kernel density estimation. It overrides aver.bin.size when too many observations are present.

Details

The method assumes a mixture model: an unknown distribution of m/z variations in the same peak, and an exponential distribution of between-peak diffs. The parameter of the exponential distribution is estimated by the upper 75

Value

The tolerance level is returned.

Author(s)

Tianwei Yu <tyu8@emory.edu>

Examples

1
2

yufree/apLCMS documentation built on Jan. 11, 2020, 8:18 p.m.