ISOSPEC_ISOSTOCHASTICGENERATORTEMPLATE(3)

πŸ“¦ version 2.3.2, in ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

IsoSpec::IsoStochasticGeneratorTemplate< IsoType > β€” bestie, this is a template class in the IsoSpec library, and this page is from the Library Functions Manual. (Yes the page header up top is a little truncated and looks like a glitch, it's giving "IsoSpec::I... IsoType >(3)", we move.) πŸŽ€


✨ SYNOPSIS ✨

It inherits from IsoSpec::IsoGenerator. Family tree moment. 🌸

🫢 Public Member Functions

  • IsoStochasticGeneratorTemplate (Iso &&iso, size_t no_molecules, double precision=0.9999, double beta_bias=5.0, std::mt19937 &rdvariate_gen=random_gen) β€” the constructor, obvs
  • ISOSPEC_FORCE_INLINE size_t count () const β€” counts things, no notes given
  • 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
  • ISOSPEC_FORCE_INLINE double lprob () const override final β€” get the log-probability of the current isotopologue
  • ISOSPEC_FORCE_INLINE void get_conf_signature (int *space) const override final β€” write the signature of configuration into the target memory location. It must be large enough to accomodate it. ⚠️
  • ISOSPEC_FORCE_INLINE bool advanceToNextConfiguration () override final β€” advance to the next, not yet visited, most probable isotopologue
  • ISOSPEC_FORCE_INLINE void get_indexes (int *space) β€” no description given, it simply exists πŸ’…

🧚 Public Member Functions inherited from IsoSpec::IsoGenerator

  • IsoGenerator (Iso &&iso, bool alloc_partials=true) β€” move constructor πŸƒβ€β™€οΈ
  • virtual ~IsoGenerator () β€” destructor, 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 (their spelling, not mine, keeping it 100)
  • Iso (int _dimNumber, const int *_isotopeNumbers, const int *_atomCounts, const double *const *_isotopeMasses, const double *const *_isotopeProbabilities) β€” another overload, no notes attached
  • 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, do not come for her 🚫
  • Iso (const Iso &other, bool fullcopy) β€” the copy constructor
  • virtual ~Iso () β€” destructor
  • double getLightestPeakMass () const β€” get the mass of the lightest peak in the isotopic distribution πŸͺΆ
  • double getHeaviestPeakMass () const β€” get the mass of the heaviest peak in the isotopic distribution πŸͺ¨
  • double getMonoisotopicPeakMass () const β€” no description, just vibes
  • double getModeLProb () const β€” get the log-probability of the mode-configuration (if there are many modes, they share this value)
  • double getUnlikeliestPeakLProb () const β€” get the logprobability of the least probable subisotopologue (their spacing, keeping it verbatim, iykyk)
  • double getModeMass () const β€” get the mass of the mode-configuration (if there are many modes, it is undefined which one will be selected) πŸ‘€
  • 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: this method can only be used BEFORE Iso is used to construct an IsoGenerator instance. Timing is everything, bestie ⏰
  • 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.

πŸ¦‹ 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 an 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 an aminoacid FASTA sequence as a C++ std::string. See above for details πŸ‘†

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

  • const double mode_lprob β€” she's const, she's not changing for anybody

πŸ’œ Protected Member Functions inherited from IsoSpec::Iso

  • bool doMarginalsNeedSorting () const β€” no description, mysterious queen

πŸ“ 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 πŸ‘‘

template<typename IsoType>
class IsoSpec::IsoStochasticGeneratorTemplate< IsoType >"
Yeah there's a stray " at the end of that line in the original. Not me fixing it. It's canon now. πŸ’€

Definition at line 586 of file isoSpec++.h.


πŸ”₯ Constructor & Destructor Documentation πŸ”₯

template<typename IsoType> IsoSpec::IsoStochasticGeneratorTemplate< IsoType >::IsoStochasticGeneratorTemplate (Iso && iso, size_t no_molecules, double precision = 0.9999, double beta_bias = 5.0, std::mt19937 & rdvariate_gen = random_gen)

Definition at line 930 of file isoSpec++.cpp.


πŸ’… Member Function Documentation πŸ’…

advanceToNextConfiguration

template<typename IsoType> ISOSPEC_FORCE_INLINE bool IsoSpec::IsoStochasticGeneratorTemplate< IsoType >::advanceToNextConfiguration () [inline],  [final],  [override],  [virtual]

Advance to the next, not yet visited, most probable isotopologue. Main character energy, always moving forward πŸšΆβ€β™€οΈβœ¨

Returns

Return false if it is not possible to advance. (Sad moment, but she's honest about it.)

Implements IsoSpec::IsoGenerator.

Definition at line 610 of file isoSpec++.h.


count

template<typename IsoType> ISOSPEC_FORCE_INLINE size_t IsoSpec::IsoStochasticGeneratorTemplate< IsoType >::count () const [inline]

Definition at line 600 of file isoSpec++.h.


get_conf_signature

template<typename IsoType> ISOSPEC_FORCE_INLINE void IsoSpec::IsoStochasticGeneratorTemplate< IsoType >::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. 🫢 Don't skimp on the buffer, bestie.

Implements IsoSpec::IsoGenerator.

Definition at line 608 of file isoSpec++.h.


get_indexes

template<typename IsoType> ISOSPEC_FORCE_INLINE void IsoSpec::IsoStochasticGeneratorTemplate< IsoType >::get_indexes (int * space) [inline]

Definition at line 685 of file isoSpec++.h.


lprob

template<typename IsoType> ISOSPEC_FORCE_INLINE double IsoSpec::IsoStochasticGeneratorTemplate< IsoType >::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 606 of file isoSpec++.h.


mass

template<typename IsoType> ISOSPEC_FORCE_INLINE double IsoSpec::IsoStochasticGeneratorTemplate< IsoType >::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 602 of file isoSpec++.h.


prob

template<typename IsoType> ISOSPEC_FORCE_INLINE double IsoSpec::IsoStochasticGeneratorTemplate< IsoType >::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 604 of file isoSpec++.h.


πŸ’– Author πŸ’–

Generated automatically by Doxygen for IsoSpec from the source code. (Not a human author, just a lil robot doing its thing πŸ€–βœ¨)


And that's the whole page, bestie! πŸŽ€ This one's from the IsoSpec library, and that footer down at the bottom β€” the truncated IsoSpec::I... IsoType >(3) one β€” is just the running footer with the source name IsoSpec and the page name, no date info given. Slay, go generate some isotopologues. πŸ’…πŸ¦‹

πŸ“¦ where this page comes from