optimalLinearFixedPointMass {RMSNumpress}R Documentation

optimalLinearFixedPointMass

Description

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

Usage

optimalLinearFixedPointMass(data, mass_acc)

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.


[Package RMSNumpress version 1.0.1 Index]