ProteoWizard
|
A method of hashing an isolation window to a unique long value mz is and m/z of a unique point in the isolation window, such as the lower bound, upper bound, or center. More...
#include <IPrecursorMaskCodec.hpp>
Static Public Member Functions | |
static MZHash | Hash (double mz) |
Hash a floating-point m/z value to an integer. | |
static double | UnHash (MZHash hashed) |
Unhash an integer to a floating-point m/z value. | |
A method of hashing an isolation window to a unique long value mz is and m/z of a unique point in the isolation window, such as the lower bound, upper bound, or center.
This value is multiplied by 100000000 and rounded to convert the isolation m/z to an integer that is used as the hash. This creates an effective fuzzy window of +/- 5e-8 m/z. For example: a window with m/z 500.49 would be hashed to 50049000000.
Definition at line 99 of file IPrecursorMaskCodec.hpp.
|
inlinestatic |
Hash a floating-point m/z value to an integer.
Definition at line 104 of file IPrecursorMaskCodec.hpp.
Referenced by pwiz::analysis::DemuxWindow::DemuxWindow().
|
inlinestatic |
Unhash an integer to a floating-point m/z value.
Definition at line 112 of file IPrecursorMaskCodec.hpp.