ISOSPEC_LAYEREDMARGINAL(3)
β¨ IsoSpec::LayeredMarginal π
okay bestie, welcome to the manual page for IsoSpec::LayeredMarginal β the LayeredMarginal class, living its best life in the IsoSpec library. it's a library functions manual, it's giving very C++ and very iconic. let's get into it π«Ά
π NAME π
IsoSpec::LayeredMarginal β the LayeredMarginal class. that's it, that's the name, periodt. β¨
πΈ SYNOPSIS πΈ
#include <marginalTrek++.h>
Inherits IsoSpec::Marginal. yes bestie, she's a subclass, she got it from her mama π
π Public Member Functions
LayeredMarginal (Marginal &&m, int tabSize=1000, int hashSize=1000)β move constructor: specializes theMarginalclass. no cap.LayeredMarginal (const LayeredMarginal &other)=deleteβ deleted, don't even try it bestie π«LayeredMarginal & operator= (const LayeredMarginal &other)=deleteβ also deleted. she said no πbool extend (double new_threshold, bool do_sort=true)β extend the set of computed subisotopologues to those above the new threshold.double get_lProb (int idx) constβ get the log-probability of theidx-th subisotopologue, see details inPrecalculatedMarginal::get_lProb.double get_prob (int idx) constβ get the probability of theidx-th subisotopologue, see details inPrecalculatedMarginal::get_eProb.double get_mass (int idx) constβ get the mass of theidx-th subisotopologue, see details inPrecalculatedMarginal::get_mass.const double * get_lProbs_ptr () constβ get the pointer to thelProbsarray. accessing index-1is legal and returns a guardian of-inf. Warning: the pointer gets invalidated on calls toextend()πconst Conf & get_conf (int idx) constβ get the counts of isotopes that define the subisotopologue, see details inPrecalculatedMarginal::get_conf.unsigned int get_no_confs () constβ get the number of precomputed subisotopologues, see details inPrecalculatedMarginal::get_no_confs.double get_min_mass () constβ get the minimal mass in the current layer.double get_max_mass () constβ get the maximal mass in the current layer.double getModeLProb () constβ get the log-probability of the mode subisotopologue.const pod_vector< double > & conf_lprobs () constβ no description, she's mysterious like that πconst pod_vector< double > & conf_masses () constβ also mysterious, also valid π
π Public Member Functions inherited from IsoSpec::Marginal
Marginal (const double *_masses, const double *_probs, int _isotopeNo, int _atomCnt)β class constructor.Marginal & operator= (const Marginal &other)=deleteβ deleted, sorry babes.Marginal (const Marginal &other)β copy constructor.Marginal (Marginal &&other)β move constructor.virtual ~Marginal ()β destructor. rip πint get_isotopeNo () constβ get the number of isotopes of the investigated element.const double * get_lProbs () constβ no description given, keep it moving.double getLightestConfMass () constβ get the mass of the lightest subisotopologue.double getHeaviestConfMass () constβ get the mass of the heaviest subisotopologue.double getMonoisotopicConfMass () constβ get the mass of the monoisotopic subisotopologue.size_t getMonoisotopicAtomIndex () constβ get the index of the monoisotopic (most probable) atom.double getModeMass ()β the the mass of the mode subisotopologue. (yes, "the the" β i'm keeping it exactly as written, bestie, that's the lore π)double getModeLProb ()β get the log-probability of the mode subisotopologue.double fastGetModeLProb ()β get the log-probability of the mode subisotopologue. results undefined ifensureModeConf()wasn't called before β so call it first or perish fr fr.Conf computeModeConf () constβ the the probability of the mode subisotopologue.double getSmallestLProb () constβ the the log-probability of the lightest subisotopologue.double getAtomAverageMass () constβ the average mass of a single atom.double getTheoreticalAverageMass () constβ the theoretical average mass of the molecule.double variance () constβ calculate the variance of the theoretical distribution describing the subisotopologue.double getLogSizeEstimate (double logEllipsoidRadius) constβ return the estimated logarithm of size of the marginal at a given ellipsoid radius.void ensureModeConf ()β no description, but she's important, remember her name.
π¦ Additional Inherited Members
π Protected Member Functions inherited from IsoSpec::Marginal
ISOSPEC_FORCE_INLINE double unnormalized_logProb (Conf conf) constβ calculate the log-probability of a given subisotopologue.ISOSPEC_FORCE_INLINE double logProb (Conf conf) constβ no description, still valid, still slaying.
πΈ Protected Attributes inherited from IsoSpec::Marginal
const unsigned int isotopeNoconst unsigned int atomCntconst double *const atom_lProbsconst double *const atom_massesconst double loggamma_nominatorConf mode_confdouble mode_lprob
π Detailed Description π
LayeredMarginal class.
an extendable version of the PrecalculatedMarginal, where you can extend the threshold at will. she's flexible like that, main character energy fr π
Definition at line 358 of file marginalTrek++.h.
π§ Constructor & Destructor Documentation π§
IsoSpec::LayeredMarginal::LayeredMarginal (Marginal && m, int tabSize = 1000, int hashSize = 1000)
Move constructor: specializes the Marginal class. β¨
Parameters
tabSizeβ the size of the table used to store configurations in the allocator.hashSizeβ the size of the hash table used to store visited subisotopologues.
Definition at line 562 of file marginalTrek++.cpp.
π₯ Member Function Documentation π₯
const pod_vector< double > & IsoSpec::LayeredMarginal::conf_lprobs () const
[inline]
Definition at line 420 of file marginalTrek++.h.
const pod_vector< double > & IsoSpec::LayeredMarginal::conf_masses () const
[inline]
Definition at line 421 of file marginalTrek++.h.
bool IsoSpec::LayeredMarginal::extend (double new_threshold, bool do_sort = true)
Extend the set of computed subisotopologues to those above the new threshold. glow up time β¨
Parameters
new_thresholdβ the new log-probability limiting the subisotopologues from below.
Returns
Returns false if there are no fringe-subisotopologues (subisotopologues that were neighbours of the previously calculated subisotopologues, with log-probability below the previous threshold).
Definition at line 573 of file marginalTrek++.cpp.
const Conf & IsoSpec::LayeredMarginal::get_conf (int idx) const
[inline]
Get the counts of isotopes that define the subisotopologue, see details in PrecalculatedMarginal::get_conf.
Definition at line 404 of file marginalTrek++.h.
double IsoSpec::LayeredMarginal::get_lProb (int idx) const
[inline]
Get the log-probability of the idx-th subisotopologue, see details in PrecalculatedMarginal::get_lProb.
Definition at line 392 of file marginalTrek++.h.
const double * IsoSpec::LayeredMarginal::get_lProbs_ptr () const
[inline]
Get the pointer to the lProbs array. Accessing index -1 is legal and returns a guardian of -inf.
Warning: the pointer gets invalidated on calls to extend() β do not hold onto it like it's your emotional support pointer bestie, it WILL ghost you π
Definition at line 401 of file marginalTrek++.h.
double IsoSpec::LayeredMarginal::get_mass (int idx) const
[inline]
Get the mass of the idx-th subisotopologue, see details in PrecalculatedMarginal::get_mass.
Definition at line 398 of file marginalTrek++.h.
double IsoSpec::LayeredMarginal::get_max_mass () const
Get the maximal mass in the current layer.
Definition at line 695 of file marginalTrek++.cpp.
double IsoSpec::LayeredMarginal::get_min_mass () const
Get the minimal mass in the current layer.
Definition at line 685 of file marginalTrek++.cpp.
unsigned int IsoSpec::LayeredMarginal::get_no_confs () const
[inline]
Get the number of precomputed subisotopologues, see details in PrecalculatedMarginal::get_no_confs.
Definition at line 407 of file marginalTrek++.h.
double IsoSpec::LayeredMarginal::get_prob (int idx) const
[inline]
Get the probability of the idx-th subisotopologue, see details in PrecalculatedMarginal::get_eProb.
Definition at line 395 of file marginalTrek++.h.
double IsoSpec::LayeredMarginal::getModeLProb () const
[inline]
Get the log-probability of the mode subisotopologue.
Returns
The log-probability of a/the most probable subisotopologue.
Definition at line 419 of file marginalTrek++.h.
π Author π
Generated automatically by Doxygen for IsoSpec from the source code. yes bestie, a robot wrote this, and she ate π
and that's a wrap!! π this page is IsoSpec::LayeredMarginal(3), part of the IsoSpec library's Library Functions Manual β no date on this footer, so we're just vibing with the source and the page name. go forth and extend those thresholds, queen ππ¦πΈ
π¦ where this page comes from
- ubuntu resolute: libisospec++-dev 2.3.2-1build1 Β· BSD-2-Clause
- ubuntu stonking: libisospec++-dev 2.3.2-2 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms