.TH "IsoSpec::LayeredMarginal" 3 "Tue Jan 3 2023" "Version 2.2.1" "IsoSpec" \" -*- nroff -*- .ad l .nh .SH NAME IsoSpec::LayeredMarginal \- \fBLayeredMarginal\fP class\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBIsoSpec::Marginal\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBLayeredMarginal\fP (\fBMarginal\fP &&m, int tabSize=1000, int hashSize=1000)" .br .RI "Move constructor: specializes the \fBMarginal\fP class\&. " .ti -1c .RI "\fBLayeredMarginal\fP (const \fBLayeredMarginal\fP &other)=delete" .br .ti -1c .RI "\fBLayeredMarginal\fP & \fBoperator=\fP (const \fBLayeredMarginal\fP &other)=delete" .br .ti -1c .RI "bool \fBextend\fP (double new_threshold, bool do_sort=true)" .br .RI "Extend the set of computed subisotopologues to those above the new threshold\&. " .ti -1c .RI "double \fBget_lProb\fP (int idx) const" .br .RI "get the log-probability of the idx-th subisotopologue, see details in \fBPrecalculatedMarginal::get_lProb\fP\&. " .ti -1c .RI "double \fBget_prob\fP (int idx) const" .br .RI "get the probability of the idx-th subisotopologue, see details in \fBPrecalculatedMarginal::get_eProb\fP\&. " .ti -1c .RI "double \fBget_mass\fP (int idx) const" .br .RI "get the mass of the idx-th subisotopologue, see details in \fBPrecalculatedMarginal::get_mass\fP\&. " .ti -1c .RI "const double * \fBget_lProbs_ptr\fP () const" .br .RI "get the pointer to lProbs array\&. Accessing index -1 is legal and returns a guardian of -inf\&. Warning: The pointer gets invalidated on calls to \fBextend()\fP " .ti -1c .RI "const Conf & \fBget_conf\fP (int idx) const" .br .RI "get the counts of isotopes that define the subisotopologue, see details in \fBPrecalculatedMarginal::get_conf\fP\&. " .ti -1c .RI "unsigned int \fBget_no_confs\fP () const" .br .RI "Get the number of precomputed subisotopologues, see details in \fBPrecalculatedMarginal::get_no_confs\fP\&. " .ti -1c .RI "double \fBget_min_mass\fP () const" .br .RI "Get the minimal mass in current layer\&. " .ti -1c .RI "double \fBget_max_mass\fP () const" .br .RI "Get the maximal mass in current layer\&. " .ti -1c .RI "double \fBgetModeLProb\fP () const" .br .RI "Get the log-probability of the mode subisotopologue\&. " .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP \fBLayeredMarginal\fP class\&. An extendable version of the \fBPrecalculatedMarginal\fP, where you can extend the threshold at will\&. .PP Definition at line \fB350\fP of file \fBmarginalTrek++\&.h\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "IsoSpec::LayeredMarginal::LayeredMarginal (\fBMarginal\fP && m, int tabSize = \fC1000\fP, int hashSize = \fC1000\fP)" .PP Move constructor: specializes the \fBMarginal\fP class\&. .PP \fBParameters\fP .RS 4 \fItabSize\fP The size of the table used to store configurations in the allocator\&. .br \fIhashSize\fP The size of the hash table used to store visited subisotopologues\&. .RE .PP .PP Definition at line \fB556\fP of file \fBmarginalTrek++\&.cpp\fP\&. .SH "Member Function Documentation" .PP .SS "bool IsoSpec::LayeredMarginal::extend (double new_threshold, bool do_sort = \fCtrue\fP)" .PP Extend the set of computed subisotopologues to those above the new threshold\&. .PP \fBParameters\fP .RS 4 \fInew_threshold\fP The new log-probability limiting the subisotopologues from below\&. .RE .PP \fBReturns\fP .RS 4 Returns false, if there are no fringe-subisotopologues (subisotopologues that were neighbours of the previously calculated subisotopologues, with log-probability below the previous threshold)\&. .RE .PP .PP Definition at line \fB567\fP of file \fBmarginalTrek++\&.cpp\fP\&. .SS "const Conf & IsoSpec::LayeredMarginal::get_conf (int idx) const\fC [inline]\fP" .PP get the counts of isotopes that define the subisotopologue, see details in \fBPrecalculatedMarginal::get_conf\fP\&. .PP Definition at line \fB396\fP of file \fBmarginalTrek++\&.h\fP\&. .SS "double IsoSpec::LayeredMarginal::get_lProb (int idx) const\fC [inline]\fP" .PP get the log-probability of the idx-th subisotopologue, see details in \fBPrecalculatedMarginal::get_lProb\fP\&. .PP Definition at line \fB384\fP of file \fBmarginalTrek++\&.h\fP\&. .SS "const double * IsoSpec::LayeredMarginal::get_lProbs_ptr () const\fC [inline]\fP" .PP get the pointer to lProbs array\&. Accessing index -1 is legal and returns a guardian of -inf\&. Warning: The pointer gets invalidated on calls to \fBextend()\fP .PP Definition at line \fB393\fP of file \fBmarginalTrek++\&.h\fP\&. .SS "double IsoSpec::LayeredMarginal::get_mass (int idx) const\fC [inline]\fP" .PP get the mass of the idx-th subisotopologue, see details in \fBPrecalculatedMarginal::get_mass\fP\&. .PP Definition at line \fB390\fP of file \fBmarginalTrek++\&.h\fP\&. .SS "double IsoSpec::LayeredMarginal::get_max_mass () const" .PP Get the maximal mass in current layer\&. .PP Definition at line \fB689\fP of file \fBmarginalTrek++\&.cpp\fP\&. .SS "double IsoSpec::LayeredMarginal::get_min_mass () const" .PP Get the minimal mass in current layer\&. .PP Definition at line \fB679\fP of file \fBmarginalTrek++\&.cpp\fP\&. .SS "unsigned int IsoSpec::LayeredMarginal::get_no_confs () const\fC [inline]\fP" .PP Get the number of precomputed subisotopologues, see details in \fBPrecalculatedMarginal::get_no_confs\fP\&. .PP Definition at line \fB399\fP of file \fBmarginalTrek++\&.h\fP\&. .SS "double IsoSpec::LayeredMarginal::get_prob (int idx) const\fC [inline]\fP" .PP get the probability of the idx-th subisotopologue, see details in \fBPrecalculatedMarginal::get_eProb\fP\&. .PP Definition at line \fB387\fP of file \fBmarginalTrek++\&.h\fP\&. .SS "double IsoSpec::LayeredMarginal::getModeLProb () const\fC [inline]\fP" .PP Get the log-probability of the mode subisotopologue\&. .PP \fBReturns\fP .RS 4 The log-probability of a/the most probable subisotopologue\&. .RE .PP .PP Definition at line \fB411\fP of file \fBmarginalTrek++\&.h\fP\&. .SH "Author" .PP Generated automatically by Doxygen for IsoSpec from the source code\&.