ISOSPEC_ISOSTOCHASTICGENERATOR(3)
π 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 rvalueIso, a molecule count, a precision (defaults to0.9999) and a beta bias (defaults to5.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 withconstpointers 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::stringchemical 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 BEFOREIsois used to construct anIsoGeneratorinstance. 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 arrayprioritiesmust have length equal todimNumber. 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 isconst. 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 * partialLProbsdouble * partialMassesdouble * partialProbs
π¦ Protected Attributes inherited from IsoSpec::Iso
int dimNumberint * isotopeNumbersint * atomCountsunsigned int confSizeint allDimMarginal ** 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
- debian trixie: libisospec++-dev 2.2.1-4.1+b3 Β· BSD-2-Clause
- ubuntu noble: libisospec++-dev 2.2.1-4.1build1 Β· BSD-2-Clause
- ubuntu questing: libisospec++-dev 2.2.1-4.1build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms