35 #ifndef OPENMS_TRANSFORMATIONS_FEATUREFINDER_BASEMODEL_H 
   36 #define OPENMS_TRANSFORMATIONS_FEATUREFINDER_BASEMODEL_H 
   68       defaults_.
setValue(
"cutoff", 0.0, 
"Low intensity cutoff of the model.  Peaks below this intensity are not considered part of the model.");
 
   86       if (&source == 
this) 
return *
this;
 
  110     template <
typename PeakType>
 
  119     template <
class PeakIterator>
 
  149       for (
typename SamplesType::const_iterator it = samples.begin(); it != samples.end(); ++it)
 
  151         os << *it << std::endl;
 
  166 #endif // OPENMS_TRANSFORMATIONS_FEATUREFINDER_BASEMODEL_H 
Param defaults_
Container for default parameters. This member should be filled in the constructor of derived classes!...
Definition: DefaultParamHandler.h:155
void setValue(const String &key, const DataValue &value, const String &description="", const StringList &tags=StringList())
Sets a value. 
DoubleReal IntensityType
Definition: BaseModel.h:57
Param param_
Container for current parameters. 
Definition: DefaultParamHandler.h:148
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:111
RawDataVector::iterator PeakIterator
Raw data iterator type. 
Definition: OptimizePick.h:61
void fillIntensities(PeakIterator begin, PeakIterator end) const 
Convenience function that applies fillIntensity() to an iterator range. 
Definition: BaseModel.h:120
virtual IntensityType getCutOff() const 
get cutoff value 
Definition: BaseModel.h:129
const DataValue & getValue(const String &key) const 
Returns a value of a parameter. 
virtual void updateMembers_()
This method is used to update extra member variables at the end of the setParameters() method...
Definition: BaseModel.h:158
virtual void getSamples(std::ostream &os)
fill stream with reasonable set of samples from the model (i.e. for printing) 
Definition: BaseModel.h:145
virtual void getSamples(SamplesType &cont) const =0
get reasonable set of samples from the model (i.e. for printing) 
DPosition< D > PositionType
Definition: BaseModel.h:59
BaseModel()
Default constructor. 
Definition: BaseModel.h:65
DoubleReal CoordinateType
Definition: BaseModel.h:58
virtual bool isContained(const PositionType &pos) const 
check if position pos is part of the model regarding the models cut-off. 
Definition: BaseModel.h:101
virtual ~BaseModel()
Destructor. 
Definition: BaseModel.h:79
virtual DefaultParamHandler & operator=(const DefaultParamHandler &rhs)
Assignment operator. 
A base class for all classes handling default parameters. 
Definition: DefaultParamHandler.h:90
Abstract base class for all D-dimensional models. 
Definition: BaseModel.h:51
static void registerChildren()
register all derived classes here (implemented in file BaseModel_impl.h) 
IntensityType cut_off_
Definition: BaseModel.h:156
virtual IntensityType getIntensity(const PositionType &pos) const =0
access model predicted intensity at position pos 
std::vector< PeakType > SamplesType
Definition: BaseModel.h:61
virtual BaseModel & operator=(const BaseModel &source)
assignment operator 
Definition: BaseModel.h:84
Metafunction to choose among Peak1D respectively Peak2D through a template argument. 
Definition: DPeak.h:61
DPeak< D >::Type PeakType
Definition: BaseModel.h:60
virtual void setCutOff(IntensityType cut_off)
set cutoff value 
Definition: BaseModel.h:135
BaseModel(const BaseModel &source)
copy constructor 
Definition: BaseModel.h:72