optimalLinearFixedPointMass {RMSNumpress} | R Documentation |
Compute the optimal linear fixed point with a desired m/z accuracy.
optimalLinearFixedPointMass(data, mass_acc)
data |
pointer to array of double to be encoded (need memorycont. repr.) |
mass_acc |
desired m/z accuracy in Th |
the linear fixed point that satisfies the accuracy requirement (or -1 in case of failure).
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.