34 defaults_.
setValue(
"cutoff", 0.0,
"Low intensity cutoff of the model. Peaks below this intensity are not considered part of the model.");
72 template<
typename PeakType>
81 template<
class PeakIterator>
84 for (PeakIterator it = begin; it != end; ++it)
111 for (
typename SamplesType::const_iterator it = samples.begin(); it != samples.end(); ++it)
113 os << *it << std::endl;
Abstract base class for 1-dimensional models.
Definition: BaseModel.h:22
virtual IntensityType getIntensity(const PositionType &pos) const =0
access model predicted intensity at position pos
DPosition< 1 > PositionType
Definition: BaseModel.h:26
BaseModel(const BaseModel &source)
copy constructor
Definition: BaseModel.h:38
BaseModel & operator=(const BaseModel &source)
assignment operator
Definition: BaseModel.h:48
double CoordinateType
Definition: BaseModel.h:25
BaseModel()
Default constructor.
Definition: BaseModel.h:32
virtual void setCutOff(IntensityType cut_off)
set cutoff value
Definition: BaseModel.h:97
void fillIntensities(PeakIterator begin, PeakIterator end) const
Convenience function that applies fillIntensity() to an iterator range.
Definition: BaseModel.h:82
~BaseModel() override
Destructor.
Definition: BaseModel.h:43
virtual bool isContained(const PositionType &pos) const
check if position pos is part of the model regarding the models cut-off.
Definition: BaseModel.h:63
virtual IntensityType getCutOff() const
get cutoff value
Definition: BaseModel.h:91
std::vector< PeakType > SamplesType
Definition: BaseModel.h:28
void fillIntensity(PeakType &peak) const
Convenience function to set the intensity of a peak to the predicted intensity at its current positio...
Definition: BaseModel.h:73
virtual void getSamples(SamplesType &cont) const =0
get reasonable set of samples from the model (i.e. for printing)
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
Definition: BaseModel.h:120
double IntensityType
Definition: BaseModel.h:24
IntensityType cut_off_
Definition: BaseModel.h:118
virtual void getSamples(std::ostream &os)
fill stream with reasonable set of samples from the model (i.e. for printing)
Definition: BaseModel.h:107
DPeak< 1 >::Type PeakType
Definition: BaseModel.h:27
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
Param param_
Container for current parameters.
Definition: DefaultParamHandler.h:139
DefaultParamHandler & operator=(const DefaultParamHandler &rhs)
Assignment operator.
Param defaults_
Container for default parameters. This member should be filled in the constructor of derived classes!
Definition: DefaultParamHandler.h:146
const ParamValue & getValue(const std::string &key) const
Returns a value of a parameter.
void setValue(const std::string &key, const ParamValue &value, const std::string &description="", const std::vector< std::string > &tags=std::vector< std::string >())
Sets a value.
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Metafunction to choose among Peak1D respectively Peak2D through a template argument.
Definition: DPeak.h:26