optimalLinearFixedPointMass: optimalLinearFixedPointMass

Description Usage Arguments Value Note

View source: R/RcppExports.R

Description

Compute the optimal linear fixed point with a desired m/z accuracy.

Usage

1

Arguments

data

pointer to array of double to be encoded (need memorycont. repr.)

mass_acc

desired m/z accuracy in Th

Value

the linear fixed point that satisfies the accuracy requirement (or -1 in case of failure).

Note

If the desired accuracy cannot be reached without overflowing 64 bit integers, then a negative value is returned. You need to check for this and in that case abandon numpress or use optimalLinearFixedPoint which returns the largest safe value.


RMSNumpress documentation built on Feb. 5, 2021, 1:07 a.m.