ISOSPEC_ISOSTOCHASTICGENERATOR(3)

πŸ“¦
version 2.2.1 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu questing

πŸ’– IsoSpec::IsoStochasticGenerator β€” Library Functions Manual πŸ’–

okay bestie, welcome to the IsoSpec::IsoStochasticGenerator(3) page, from the Library Functions Manual. this is the stochastic generator class in IsoSpec and she is serving. let's get into it ✨


🌸 NAME 🌸

IsoSpec::IsoStochasticGenerator β€” the iconic class itself. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

she inherits from IsoSpec::IsoGenerator. family tree matters, ok?

✨ Public Member Functions ✨

  • IsoStochasticGenerator (Iso &&iso, size_t no_molecules, double precision=0.9999, double beta_bias=5.0) β€” the glow-up constructor, takes an rvalue Iso, a molecule count, a precision (defaults to 0.9999) and a beta bias (defaults to 5.0).
  • ISOSPEC_FORCE_INLINE size_t count () const β€” counts things. she's giving efficiency.
  • ISOSPEC_FORCE_INLINE double mass () const override final β€” get the mass of the current isotopologue. πŸ’…
  • ISOSPEC_FORCE_INLINE double prob () const override final β€” get the probability of the current isotopologue. no cap.
  • ISOSPEC_FORCE_INLINE double lprob () const override final β€” get the log-probability of the current isotopologue. math girlie behavior.
  • ISOSPEC_FORCE_INLINE void get_conf_signature (int *space) const override final β€” write the signature of configuration into target memory location. it must be large enough to accomodate it. (yes, we said accomodate, that's literally how the original spells it, don't @ me 😭)
  • ISOSPEC_FORCE_INLINE bool advanceToNextConfiguration () override final β€” advance to the next, not yet visited, most probable isotopologue. moving forward, always. 🧚

πŸ’œ Public Member Functions inherited from IsoSpec::IsoGenerator

  • IsoGenerator (Iso &&iso, bool alloc_partials=true) β€” the move constructor. she moves, she grooves.
  • virtual ~IsoGenerator () β€” the destructor. say bye bestie 🫢

πŸŽ€ Public Member Functions inherited from IsoSpec::Iso

  • Iso (int _dimNumber, const int *_isotopeNumbers, const int *_atomCounts, const double *_isotopeMasses, const double *_isotopeProbabilities) β€” the general constructror. (again, original spelling, i don't make the rules βœ‹)
  • Iso (int _dimNumber, const int *_isotopeNumbers, const int *_atomCounts, const double *const *_isotopeMasses, const double *const *_isotopeProbabilities) β€” another constructor, this time with const pointers to pointers. extra spice.
  • Iso (const char *formula, bool use_nominal_masses=false) β€” constructor from the formula object.
  • Iso (const std::string &formula, bool use_nominal_masses=false) β€” constructor from a C++ std::string chemical formula.
  • Iso (Iso &&other) β€” the move constructor.
  • Iso & operator= (const Iso &other)=delete β€” deleted. not allowed. she said no thank u πŸ’€
  • Iso (const Iso &other, bool fullcopy) β€” the copy constructor.
  • virtual ~Iso () β€” the destructor.
  • double getLightestPeakMass () const β€” get the mass of the lightest peak in the isotopic distribution. tiny queen πŸ‘‘
  • double getHeaviestPeakMass () const β€” get the mass of the heaviest peak in the isotopic distribution.
  • double getMonoisotopicPeakMass () const β€” the monoisotopic peak mass. that's it, that's the function.
  • double getModeLProb () const β€” get the log-probability of the mode-configuration. if there are many modes, they share this value. sharing is caring.
  • double getUnlikeliestPeakLProb () const β€” get the logprobability of the least probable subisotopologue. (one word, logprobability, we keep it as is πŸ’…)
  • double getModeMass () const β€” get the mass of the mode-configuration. if there are many modes, it is undefined which one will be selected. lowkey chaotic but okay.
  • double getTheoreticalAverageMass () const β€” get the theoretical average mass of the molecule.
  • double variance () const β€” get the theoretical variance of the distribution.
  • double stddev () const β€” get the standard deviation of the theoretical distribution.
  • int getDimNumber () const β€” get the number of elements in the chemical formula of the molecule.
  • int getAllDim () const β€” get the total number of isotopes of elements present in a chemical formula.
  • void addElement (int atomCount, int noIsotopes, const double *isotopeMasses, const double *isotopeProbabilities) β€” add an element to the molecule.
⚠️ note bestie: this method can only be used BEFORE Iso is used to construct an IsoGenerator instance. like, before. do not try her afterwards. she will not play.
  • void saveMarginalLogSizeEstimates (double *priorities, double target_total_prob) const β€” save estimates of logarithms of target sizes of marginals using Gaussian approximation into the argument array. the array priorities must have length equal to dimNumber. no short arrays allowed πŸ™ˆ

🌈 Additional Inherited Members 🌈

⭐ Static Public Member Functions inherited from IsoSpec::Iso

  • static Iso FromFASTA (const char *fasta, bool use_nominal_masses=false, bool add_water=true) β€” constructor (named) from aminoacid FASTA sequence as a C string.
  • static Iso FromFASTA (const std::string &fasta, bool use_nominal_masses=false, bool add_water=true) β€” constructor (named) from aminoacid FASTA sequence as a C++ std::string. see above for details. iykyk.

πŸ’– Public Attributes inherited from IsoSpec::IsoGenerator

  • const double mode_lprob β€” a whole public attribute, and she is const. respect.

🌸 Protected Member Functions inherited from IsoSpec::Iso

  • bool doMarginalsNeedSorting () const β€” asks the question we all ask ourselves sometimes.

πŸŽ€ Protected Attributes inherited from IsoSpec::IsoGenerator

  • double * partialLProbs
  • double * partialMasses
  • double * partialProbs

πŸ¦‹ Protected Attributes inherited from IsoSpec::Iso

  • int dimNumber
  • int * isotopeNumbers
  • int * atomCounts
  • unsigned int confSize
  • int allDim
  • Marginal ** marginals

πŸ‘‘ Detailed Description πŸ‘‘

definition at line 542 of file isoSpec++.h. that's the whole description, she's mysterious like that. main character energy ✨


πŸ’… Constructor & Destructor Documentation πŸ’…

IsoSpec::IsoStochasticGenerator::IsoStochasticGenerator (Iso && iso, size_t no_molecules, double precision = 0.9999, double beta_bias = 5.0)

definition at line 923 of file isoSpec++.cpp. that's where she lives. 🏠


πŸ”₯ Member Function Documentation πŸ”₯

ISOSPEC_FORCE_INLINE bool IsoSpec::IsoStochasticGenerator::advanceToNextConfiguration () [inline], [final], [override], [virtual]

advance to the next, not yet visited, most probable isotopologue. πŸ’«

Returns

return false if it is not possible to advance. (sad but true.)

implements IsoSpec::IsoGenerator.

definition at line 565 of file isoSpec++.h.


ISOSPEC_FORCE_INLINE size_t IsoSpec::IsoStochasticGenerator::count () const [inline]

definition at line 555 of file isoSpec++.h. no description, just vibes. 🫢


ISOSPEC_FORCE_INLINE void IsoSpec::IsoStochasticGenerator::get_conf_signature (int * space) const [inline], [final], [override], [virtual]

write the signature of configuration into target memory location. it must be large enough to accomodate it. (yes, still spelled that way, love that for us πŸ’–)

implements IsoSpec::IsoGenerator.

definition at line 563 of file isoSpec++.h.


ISOSPEC_FORCE_INLINE double IsoSpec::IsoStochasticGenerator::lprob () const [inline], [final], [override], [virtual]

get the log-probability of the current isotopologue.

Returns

the log-probability of the current isotopologue.

reimplemented from IsoSpec::IsoGenerator.

definition at line 561 of file isoSpec++.h.


ISOSPEC_FORCE_INLINE double IsoSpec::IsoStochasticGenerator::mass () const [inline], [final], [override], [virtual]

get the mass of the current isotopologue. βš–οΈ

Returns

the mass of the current isotopologue.

reimplemented from IsoSpec::IsoGenerator.

definition at line 557 of file isoSpec++.h.


ISOSPEC_FORCE_INLINE double IsoSpec::IsoStochasticGenerator::prob () const [inline], [final], [override], [virtual]

get the probability of the current isotopologue.

Returns

the probability of the current isotopologue.

reimplemented from IsoSpec::IsoGenerator.

definition at line 559 of file isoSpec++.h.


πŸŽ€ Author πŸŽ€

generated automatically by Doxygen for IsoSpec from the source code. so technically the author is a robot but we love her anyway πŸ€–πŸ’–


and that's the whole page bestie!! this was IsoSpec, version 2.2.1, and you were reading IsoSpec::I...icGenerator(3). slay, go generate some isotopologues, and remember: keep every flag, every default, every number. periodt. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from