ISOSPEC_ISOSTOCHASTICGENERATORTEMPLATE(3)
π 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, obvsISOSPEC_FORCE_INLINE size_t count () constβ counts things, no notes givenISOSPEC_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 isotopologueISOSPEC_FORCE_INLINE double lprob () const override finalβ get the log-probability of the current isotopologueISOSPEC_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 isotopologueISOSPEC_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 attachedIso (const char *formula, bool use_nominal_masses=false)β constructor from the formula objectIso (const std::string &formula, bool use_nominal_masses=false)β constructor from a C++std::stringchemical formulaIso (Iso &&other)β the move constructorIso & operator= (const Iso &other)=deleteβ deleted, do not come for her π«Iso (const Iso &other, bool fullcopy)β the copy constructorvirtual ~Iso ()β destructordouble 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 vibesdouble 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 moleculedouble variance () constβ get the theoretical variance of the distributiondouble stddev () constβ get the standard deviation of the theoretical distributionint getDimNumber () constβ get the number of elements in the chemical formula of the moleculeint getAllDim () constβ get the total number of isotopes of elements present in a chemical formulavoid addElement (int atomCount, int noIsotopes, const double *isotopeMasses, const double *isotopeProbabilities)β add an element to the molecule. Note: this method can only be used BEFOREIsois used to construct anIsoGeneratorinstance. 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 arrayprioritiesmust have length equal todimNumber.
π¦ 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 stringstatic 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 * partialLProbsdouble * partialMassesdouble * partialProbs
πΈ Protected Attributes inherited from IsoSpec::Iso
int dimNumberint * isotopeNumbersint * atomCountsunsigned int confSizeint allDimMarginal ** 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
- 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