FitResolution: Fits mass versus resolution values to an empirical function.

View source: R/RcppExports.R

FitResolutionR Documentation

Fits mass versus resolution values to an empirical function.

Description

FitResolution fits mass versus resolution values to an empirical function (see Details).

Usage

FitResolution(mass, resolution, R0, m0, dm)

Arguments

mass

Vector of mass values.

resolution

Vector of resolution values.

R0

Initial guess value of nominal mass resolution R0.

m0

Initial guess value of m0 (mass where R(m) = 0.5*R0).

dm

Initial guess value of slope parameter dm.

Details

An empirical function that describes the mass resolution as a function of mass is: R(m) = R0 - R0/(1 + exp((m -m0)/dm)), where R0 is the nominal mass resolution, m0 is the mass at which the resolution is R0/2 and dm is a slope parameter.

Reasonable initial guess values for R0, m0 and dm need to be provided.

Value

List with the fitted parameters R0, m0 and dm.

See Also

EvalResolution


pasturm/TofDaqR documentation built on March 29, 2024, 12:10 a.m.