IsoSpec::PrecalculatedMarginal(3) | IsoSpec | IsoSpec::PrecalculatedMarginal(3) |
IsoSpec::PrecalculatedMarginal - Precalculated Marginal class.
#include <marginalTrek++.h>
Inherits IsoSpec::Marginal.
PrecalculatedMarginal (Marginal &&m, double
lCutOff, bool sort=true, int tabSize=1000, int hashSize=1000)
The move constructor (disowns the Marginal).
PrecalculatedMarginal (const PrecalculatedMarginal
&other)=delete
PrecalculatedMarginal & operator= (const
PrecalculatedMarginal &other)=delete
virtual ~PrecalculatedMarginal ()
Destructor. bool inRange (unsigned int idx) const
Is there a subisotopologue with a given number? const double &
get_lProb (int idx) const
Get the log-probability of the idx-th subisotopologue. const double &
get_prob (int idx) const
Get the probability of the idx-th subisotopologue. const double &
get_mass (int idx) const
Get the mass of the idx-th subisotopologue. const double *
get_lProbs_ptr () const
Get the table of the log-probabilities of subisotopologues. const double *
get_masses_ptr () const
Get the table of the masses of subisotopologues. const Conf &
get_conf (int idx) const
Get the counts of isotopes that define the subisotopologue. unsigned int
get_no_confs () const
Get the number of precomputed subisotopologues. double getModeLProb ()
const
Get the log-probability of the mode subisotopologue.
pod_vector< Conf > configurations
Conf * confs
unsigned int no_confs
double * masses
pod_vector< double > lProbs
double * probs
Allocator< int > allocator
Precalculated Marginal class.
This class serves to calculate a set of isotopologues that is defined by the minimal probability threshold.
This works faster than if you did not know the threshold. If you have no idea about the threshold, you would need to call us, to change encode the layered version of the marginal.
Definition at line 251 of file marginalTrek++.h.
The move constructor (disowns the Marginal). This constructor memoizes all subisotopologues with log-probability above the provided threshold lCutOff
Parameters
Returns
Definition at line 443 of file marginalTrek++.cpp.
Destructor.
Definition at line 542 of file marginalTrek++.cpp.
Get the counts of isotopes that define the subisotopologue.
Parameters
Returns
Definition at line 329 of file marginalTrek++.h.
Get the log-probability of the idx-th subisotopologue.
Parameters
Returns
Definition at line 295 of file marginalTrek++.h.
Get the table of the log-probabilities of subisotopologues.
Returns
Definition at line 315 of file marginalTrek++.h.
Get the mass of the idx-th subisotopologue.
Parameters
Returns
Definition at line 309 of file marginalTrek++.h.
Get the table of the masses of subisotopologues.
Returns
Definition at line 321 of file marginalTrek++.h.
Get the number of precomputed subisotopologues.
Returns
Definition at line 335 of file marginalTrek++.h.
Get the probability of the idx-th subisotopologue.
Parameters
Returns
Definition at line 302 of file marginalTrek++.h.
Get the log-probability of the mode subisotopologue.
Returns
Definition at line 341 of file marginalTrek++.h.
Is there a subisotopologue with a given number?
Returns
Definition at line 288 of file marginalTrek++.h.
Definition at line 260 of file marginalTrek++.h.
Definition at line 254 of file marginalTrek++.h.
Definition at line 255 of file marginalTrek++.h.
Definition at line 258 of file marginalTrek++.h.
Definition at line 257 of file marginalTrek++.h.
Definition at line 256 of file marginalTrek++.h.
Definition at line 259 of file marginalTrek++.h.
Generated automatically by Doxygen for IsoSpec from the source code.
Tue Jan 3 2023 | Version 2.2.1 |