![]() |
OpenMS
2.4.0
|
#include <OpenMS/CHEMISTRY/ISOTOPEDISTRIBUTION/IsoSpecWrapper.h>
Public Member Functions | |
virtual IsotopeDistribution | run ()=0 |
A convenience class for the IsoSpec algorithm - easier to use than the generator classes. More... | |
virtual | ~IsoSpecWrapper () |
|
inlinevirtual |
|
pure virtual |
A convenience class for the IsoSpec algorithm - easier to use than the generator classes.
Run the algorithm
This method will run the algorithm with parameters as set up by the constructor. It will return an IsotopeDistribution containing the observed configurations. The configurations are explicitly stored in memory, which may become a problem when considering some especially large distributions. If this, or (a rather small) performance overhead is a concern, then the generator methods (below) should be used instead.
This method is provided for convience. As calling that method invalidates the object (the method should not be called again, nor anything other than destroying the object should be done with it), the most common usage pattern of IsoSpecGeneratorWrapper classes with the run method is:
IsotopeDistribution dist = IsoSpecGeneratorWrapperSubclass(...).run(); do something with dist;
Implemented in IsoSpecThresholdWrapper, and IsoSpecTotalProbWrapper.