Representation of a peptide/protein sequence.
Definition: AASequence.h:112
The representation of a 1D spectrum.
Definition: MSSpectrum.h:70
A more convenient string class.
Definition: String.h:60
Loads SvmTheoreticalSpectrumGenerator instances for different charges.
Definition: SvmTheoreticalSpectrumGeneratorSet.h:62
SvmTheoreticalSpectrumGeneratorSet()
Default constructor.
SvmTheoreticalSpectrumGenerator & getSvmModel(Size)
return a modifiable reference to the SVM model with given charge. If charge is not supported throw ex...
SvmTheoreticalSpectrumGeneratorSet(const SvmTheoreticalSpectrumGeneratorSet &source)
Copy constructor.
void simulate(PeakSpectrum &spectrum, const AASequence &peptide, boost::random::mt19937_64 &rng, Size precursor_charge)
Generate the MS/MS according to the model for the given precursor_charge.
void load(String)
Load a trained Svm and Prob. models.
void getSupportedCharges(std::set< Size > &charges)
Return precursor charges for which a model is contained in the set.
std::map< Size, SvmTheoreticalSpectrumGenerator > simulators_
Definition: SvmTheoreticalSpectrumGeneratorSet.h:95
SvmTheoreticalSpectrumGeneratorSet & operator=(const SvmTheoreticalSpectrumGeneratorSet &tsg)
Assignment operator.
virtual ~SvmTheoreticalSpectrumGeneratorSet()
Destructor.
Simulates MS2 spectra with support vector machines.
Definition: SvmTheoreticalSpectrumGenerator.h:73
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47