IsoSpec::P...edMarginal(3)

πŸ“¦
version 2.3.2 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

✨ IsoSpec::P...edMarginal ✨</p> β€” aka IsoSpec::PrecalculatedMarginal

okay bestie, welcome to the Library Functions Manual for IsoSpec, and today's main character is the Precalculated Marginal class πŸ’… no cap, she's the one who already did the math so you don't have to.


🌸 NAME 🌸

IsoSpec::PrecalculatedMarginal</p> β€” Precalculated Marginal class. that's her, that's the whole vibe 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <marginalTrek++.h>

she Inherits IsoSpec::Marginal, so everything the parent class can do, she can do too. iconic family tree honestly πŸ‘‘

πŸ’– Public Member Functions πŸ’–

  • PrecalculatedMarginal (Marginal &&m, double lCutOff, bool sort=true, int tabSize=1000, int hashSize=1000) β€” the move constructor, and yes she disowns the Marginal (rip bozo, it's hers now).
  • PrecalculatedMarginal (const PrecalculatedMarginal &other)=delete β€” copy constructor? deleted. not happening. πŸ™ˆ
  • PrecalculatedMarginal & operator= (const PrecalculatedMarginal &other)=delete β€” copy assignment? also deleted. we don't do that here.
  • virtual ~PrecalculatedMarginal () β€” Destructor. say bye bye πŸ’€
  • 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.

πŸ’œ 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
  • Marginal (const Marginal &other) β€” Copy constructor.
  • Marginal (Marginal &&other) β€” Move constructor.
  • virtual ~Marginal () β€” Destructor.
  • int get_isotopeNo () const β€” Get the number of isotopes of the investigated element.
  • const double * get_lProbs () const
  • 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 original really does say "The the", we love her for it πŸŽ€)
  • double getModeLProb () β€” Get the log-probability of the mode subisotopologue.
  • double fastGetModeLProb () β€” Get the log-probability of the mode subisotopologue. Results undefined if ensureModeConf() wasn't called before. ⚠️ like, undefined undefined. do not.
  • 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 estimated logarithm of size of the marginal at a given ellipsoid radius.
  • void ensureModeConf ()

🌈 Protected Attributes 🌈

  • pod_vector< Conf > configurations
  • Conf * confs
  • unsigned int no_confs
  • double * masses
  • pod_vector< double > lProbs
  • double * probs
  • Allocator< int > allocator

🧚 Protected Attributes inherited from IsoSpec::Marginal 🧚

  • const unsigned int isotopeNo
  • const unsigned int atomCnt
  • const double *const atom_lProbs
  • const double *const atom_masses
  • const double loggamma_nominator
  • Conf mode_conf
  • double mode_lprob

⭐ 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

πŸ‘‘ Detailed Description πŸ‘‘

Precalculated Marginal class.

This class serves to calculate a set of isotopologues that is defined by the minimal probability threshold. bestie, she's the girl who already knows the cutoff.

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. (fr fr, just hit us up.)

Definition at line 259 of file marginalTrek++.h. πŸ’–

πŸŽ€ Constructor & Destructor Documentation πŸŽ€

IsoSpec::PrecalculatedMarginal::PrecalculatedMarginal (Marginal && m, double lCutOff, bool sort = true, int tabSize = 1000, int hashSize = 1000)

The move constructor (disowns the Marginal). This constructor memoizes all subisotopologues with log-probability above the provided threshold lCutOff.

Parameters

  • Marginal β€” An instance of the Marginal class this class is about to disown. (it's giving "we're not together anymore" 😭)
  • lCutOff β€” The lower limit on the log-probability of the precomputed subisotopologues.
  • sort β€” Should the subisotopologues be stored with descending probability ?

Returns

An instance of the PrecalculatedMarginal class.

Definition at line 449 of file marginalTrek++.cpp. ✨

IsoSpec::PrecalculatedMarginal::~PrecalculatedMarginal () [virtual]

Destructor. she's done, she's leaving the group chat πŸ’€

Definition at line 548 of file marginalTrek++.cpp. ✨

πŸ’… Member Function Documentation πŸ’…

const Conf & IsoSpec::PrecalculatedMarginal::get_conf (int idx) const [inline]

Get the counts of isotopes that define the subisotopologue.

Parameters

  • idx β€” The number of the considered subisotopologue.

Returns

The counts of isotopes that define the subisotopologue.

Definition at line 337 of file marginalTrek++.h. πŸ¦‹

const double & IsoSpec::PrecalculatedMarginal::get_lProb (int idx) const [inline]

Get the log-probability of the idx-th subisotopologue.

Parameters

  • idx β€” The number of the considered subisotopologue.

Returns

The log-probability of the idx-th subisotopologue.

Definition at line 303 of file marginalTrek++.h. πŸ¦‹

const double * IsoSpec::PrecalculatedMarginal::get_lProbs_ptr () const [inline]

Get the table of the log-probabilities of subisotopologues.

Returns

Pointer to the first element in the table storing log-probabilities of subisotopologues.

Definition at line 323 of file marginalTrek++.h. πŸ¦‹

const double & IsoSpec::PrecalculatedMarginal::get_mass (int idx) const [inline]

Get the mass of the idx-th subisotopologue.

Parameters

  • idx β€” The number of the considered subisotopologue.

Returns

The mass of the idx-th subisotopologue.

Definition at line 317 of file marginalTrek++.h. πŸ¦‹

const double * IsoSpec::PrecalculatedMarginal::get_masses_ptr () const [inline]

Get the table of the masses of subisotopologues.

Returns

Pointer to the first element in the table storing masses of subisotopologues.

Definition at line 329 of file marginalTrek++.h. πŸ¦‹

unsigned int IsoSpec::PrecalculatedMarginal::get_no_confs () const [inline]

Get the number of precomputed subisotopologues.

Returns

The number of precomputed subisotopologues.

Definition at line 343 of file marginalTrek++.h. πŸ¦‹

const double & IsoSpec::PrecalculatedMarginal::get_prob (int idx) const [inline]

Get the probability of the idx-th subisotopologue.

Parameters

  • idx β€” The number of the considered subisotopologue.

Returns

The probability of the idx-th subisotopologue.

Definition at line 310 of file marginalTrek++.h. πŸ¦‹

double IsoSpec::PrecalculatedMarginal::getModeLProb () const [inline]

Get the log-probability of the mode subisotopologue.

Returns

The log-probability of a/the most probable subisotopologue.

Definition at line 349 of file marginalTrek++.h. πŸ¦‹

bool IsoSpec::PrecalculatedMarginal::inRange (unsigned int idx) const [inline]

Is there a subisotopologue with a given number?

Returns

Returns true if idx does not exceed the number of pre-computed configurations.

Definition at line 296 of file marginalTrek++.h. πŸ¦‹

πŸ’– Member Data Documentation πŸ’–

Allocator<int> IsoSpec::PrecalculatedMarginal::allocator [protected]

Definition at line 268 of file marginalTrek++.h. ⭐

pod_vector<Conf> IsoSpec::PrecalculatedMarginal::configurations [protected]

Definition at line 262 of file marginalTrek++.h. ⭐

Conf* IsoSpec::PrecalculatedMarginal::confs [protected]

Definition at line 263 of file marginalTrek++.h. ⭐

pod_vector<double> IsoSpec::PrecalculatedMarginal::lProbs [protected]

Definition at line 266 of file marginalTrek++.h. ⭐

double* IsoSpec::PrecalculatedMarginal::masses [protected]

Definition at line 265 of file marginalTrek++.h. ⭐

unsigned int IsoSpec::PrecalculatedMarginal::no_confs [protected]

Definition at line 264 of file marginalTrek++.h. ⭐

double* IsoSpec::PrecalculatedMarginal::probs [protected]

Definition at line 267 of file marginalTrek++.h. ⭐

🌟 Author 🌟

Generated automatically by Doxygen for IsoSpec from the source code. (the robots wrote it, I just gave it ✨flavor✨)


and that's the whole page bestie 🫢 she's from the Library Functions Manual section IsoSpec::P...edMarginal(3), and this rendition dropped with IsoSpec β€” same source, same version, same date as the original. mwah πŸ’‹ periodt.

πŸ“¦ where this page comes from