53 class IsoLayeredGenerator;
54 class IsoThresholdGenerator;
55 class IsoOrderedGenerator;
231 const std::vector<int>& atomCounts,
232 const std::vector<std::vector<double> >& isotopeMasses,
233 const std::vector<std::vector<double> >& isotopeProbabilities,
248 double getMass() final;
249 double getIntensity() final;
250 double getLogIntensity() final;
253 std::unique_ptr<
IsoSpec::IsoLayeredGenerator> ILG;
296 const std::vector<int>& atomCounts,
297 const std::vector<std::vector<double> >& isotopeMasses,
298 const std::vector<std::vector<double> >& isotopeProbabilities,
315 double getMass() final;
316 double getIntensity() final;
317 double getLogIntensity() final;
321 std::unique_ptr<
IsoSpec::IsoThresholdGenerator> ITG;
354 const std::vector<int>& atomCounts,
355 const std::vector<std::vector<double> >& isotopeMasses,
356 const std::vector<std::vector<double> >& isotopeProbabilities);
370 inline
double getMass() final;
371 inline
double getIntensity() final;
372 inline
double getLogIntensity() final;
375 std::unique_ptr<
IsoSpec::IsoOrderedGenerator> IOG;
421 const std::vector<int>& atomCounts,
422 const std::vector<std::vector<double> >& isotopeMasses,
423 const std::vector<std::vector<double> >& isotopeProbabilities,
425 bool do_p_trim =
false);
441 std::unique_ptr<
IsoSpec::IsoLayeredGenerator> ILG;
442 const
double target_prob;
443 const
bool do_p_trim;
485 const std::vector<int>& atomCounts,
486 const std::vector<std::vector<double> >& isotopeMasses,
487 const std::vector<std::vector<double> >& isotopeProbabilities,
504 std::unique_ptr<
IsoSpec::IsoThresholdGenerator> ITG;
Interface for the IsoSpec algorithm - a generator of infinitely-resolved theoretical spectra.
Definition: IsoSpecWrapper.h:89
virtual Peak1D getConf()=0
Obtain the current isotopologue.
virtual bool nextConf()=0
Move the generator to a next isotopologue.
virtual ~IsoSpecGeneratorWrapper()=default
Destructor.
virtual double getIntensity()=0
Obtain the intensity (probability, relative peak height) of the current configuration.
virtual double getLogIntensity()=0
Obtain the natural logarithm of the intensity (probability, relative peak height) of the current conf...
virtual double getMass()=0
Obtain the mass of the current isotopologue.
Generate the stream of configurations, ordered from most likely to least likely.
Definition: IsoSpecWrapper.h:342
~IsoSpecOrderedGeneratorWrapper()
bool nextConf() final
Move the generator to a next isotopologue.
IsoSpecOrderedGeneratorWrapper(const EmpiricalFormula &formula)
Setup the algorithm to run on an EmpiricalFormula.
IsoSpecOrderedGeneratorWrapper(const IsoSpecOrderedGeneratorWrapper &)=delete
IsoSpecOrderedGeneratorWrapper(const std::vector< int > &isotopeNumbers, const std::vector< int > &atomCounts, const std::vector< std::vector< double > > &isotopeMasses, const std::vector< std::vector< double > > &isotopeProbabilities)
Constructor.
Provides a threshold-based generator of isotopologues: generates all isotopologues more probable than...
Definition: IsoSpecWrapper.h:278
IsoSpecThresholdGeneratorWrapper(const std::vector< int > &isotopeNumbers, const std::vector< int > &atomCounts, const std::vector< std::vector< double > > &isotopeMasses, const std::vector< std::vector< double > > &isotopeProbabilities, double threshold, bool absolute)
Constructor.
IsoSpecThresholdGeneratorWrapper(const IsoSpecThresholdGeneratorWrapper &)=delete
bool nextConf() final
Move the generator to a next isotopologue.
IsoSpecThresholdGeneratorWrapper(const EmpiricalFormula &formula, double threshold, bool absolute)
Setup the algorithm to run on an EmpiricalFormula.
~IsoSpecThresholdGeneratorWrapper()
A non-generator version of IsoSpecThresholdGeneratorWrapper.
Definition: IsoSpecWrapper.h:467
IsoSpecThresholdWrapper(const std::vector< int > &isotopeNumbers, const std::vector< int > &atomCounts, const std::vector< std::vector< double > > &isotopeMasses, const std::vector< std::vector< double > > &isotopeProbabilities, double threshold, bool absolute)
Constructor.
~IsoSpecThresholdWrapper()
IsotopeDistribution run() final
Run the algorithm.
IsoSpecThresholdWrapper(const EmpiricalFormula &formula, double threshold, bool absolute)
Setup the algorithm to run on an EmpiricalFormula.
IsoSpecThresholdWrapper(const IsoSpecThresholdWrapper &)=delete
Generate a p-set of configurations for a given p (that is, a set of configurations such that their pr...
Definition: IsoSpecWrapper.h:215
IsoSpecTotalProbGeneratorWrapper(const IsoSpecTotalProbGeneratorWrapper &)=delete
delete copy constructor
~IsoSpecTotalProbGeneratorWrapper()
IsoSpecTotalProbGeneratorWrapper(const EmpiricalFormula &formula, double p)
Setup the algorithm to run on an EmpiricalFormula.
bool nextConf() final
Move the generator to a next isotopologue.
IsoSpecTotalProbGeneratorWrapper(const std::vector< int > &isotopeNumbers, const std::vector< int > &atomCounts, const std::vector< std::vector< double > > &isotopeMasses, const std::vector< std::vector< double > > &isotopeProbabilities, double p)
Constructor.
Create a p-set of configurations for a given p (that is, a set of configurations such that their prob...
Definition: IsoSpecWrapper.h:404
IsoSpecTotalProbWrapper(const IsoSpecTotalProbWrapper &)=delete
IsotopeDistribution run() final
Run the algorithm.
IsoSpecTotalProbWrapper(const EmpiricalFormula &formula, double p, bool do_p_trim=false)
Setup the algorithm to run on an EmpiricalFormula.
~IsoSpecTotalProbWrapper()
IsoSpecTotalProbWrapper(const std::vector< int > &isotopeNumbers, const std::vector< int > &atomCounts, const std::vector< std::vector< double > > &isotopeMasses, const std::vector< std::vector< double > > &isotopeProbabilities, double p, bool do_p_trim=false)
Constructor.
A convenience class for the IsoSpec algorithm - easier to use than the IsoSpecGeneratorWrapper classe...
Definition: IsoSpecWrapper.h:156
virtual IsotopeDistribution run()=0
Run the algorithm.
virtual ~IsoSpecWrapper()=default
Definition: IsotopeDistribution.h:65
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:54
Definition: IsoSpecWrapper.h:52
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48