|
OpenMS
2.6.0
|
Go to the documentation of this file.
67 defaults_.
setValue(
"cutoff", 0.0,
"Low intensity cutoff of the model. Peaks below this intensity are not considered part of the model.");
85 if (&source ==
this)
return *
this;
109 template <
typename PeakType>
118 template <
class PeakIterator>
148 for (
typename SamplesType::const_iterator it = samples.begin(); it != samples.end(); ++it)
150 os << *it << std::endl;
centroid data or stick data
Definition: SpectrumSettings.h:73
Base class for TOPP applications.
Definition: TOPPBase.h:144
~BaseModel() override
Destructor.
Definition: BaseModel.h:78
virtual DefaultParamHandler & operator=(const DefaultParamHandler &rhs)
Assignment operator.
void store(const String &filename, const PeakMap &map) const
Stores a map in an MzML file.
void setValue(const String &key, const DataValue &value, const String &description="", const StringList &tags=StringList())
Sets a value.
double IntensityType
Definition: BaseModel.h:56
File adapter for MzML files.
Definition: MzMLFile.h:55
A more convenient string class.
Definition: String.h:59
virtual bool isContained(const PositionType &pos) const
check if position pos is part of the model regarding the models cut-off.
Definition: BaseModel.h:100
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
virtual void getSamples(std::ostream &os)
fill stream with reasonable set of samples from the model (i.e. for printing)
Definition: BaseModel.h:144
const DataValue & getValue(const String &key) const
Returns a value of a parameter.
std::vector< PeakType > SamplesType
Definition: BaseModel.h:60
#define OPENMS_LOG_WARN
Macro if a warning, a piece of information which should be read by the user, should be logged.
Definition: LogStream.h:460
Metafunction to choose among Peak1D respectively Peak2D through a template argument.
Definition: DPeak.h:60
Size size() const
Definition: MSExperiment.h:127
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
virtual BaseModel & operator=(const BaseModel &source)
assignment operator
Definition: BaseModel.h:83
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
RawDataVector::iterator PeakIterator
Profile data iterator type.
Definition: OptimizePick.h:52
IntensityType cut_off_
Definition: BaseModel.h:155
void load(const String &filename, PeakMap &map)
Loads a map from a MzML file. Spectra and chromatograms are sorted by default (this can be disabled u...
virtual void setCutOff(IntensityType cut_off)
set cutoff value
Definition: BaseModel.h:134
double CoordinateType
Definition: BaseModel.h:57
void setParameters(const Param ¶m)
Sets the parameters.
BaseModel(const BaseModel &source)
copy constructor
Definition: BaseModel.h:71
bool empty() const
Definition: MSExperiment.h:137
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
BaseModel()
Default constructor.
Definition: BaseModel.h:64
void filterExperiment(PeakMap &exp)
Applies the morphological filtering operation to an MSExperiment.
Definition: MorphologicalFilter.h:327
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:110
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
Definition: BaseModel.h:157
static void registerChildren()
register all derived classes here (implemented in file BaseModel_impl.h)
Param defaults_
Container for default parameters. This member should be filled in the constructor of derived classes!
Definition: DefaultParamHandler.h:169
virtual IntensityType getIntensity(const PositionType &pos) const =0
access model predicted intensity at position pos
Management and storage of parameters / INI files.
Definition: Param.h:73
DPeak< D >::Type PeakType
Definition: BaseModel.h:59
DPosition< D > PositionType
Definition: BaseModel.h:58
virtual IntensityType getCutOff() const
get cutoff value
Definition: BaseModel.h:128
This class implements baseline filtering operations using methods from mathematical morphology.
Definition: MorphologicalFilter.h:160
Abstract base class for all D-dimensional models.
Definition: BaseModel.h:50
virtual void getSamples(SamplesType &cont) const =0
get reasonable set of samples from the model (i.e. for printing)
void setLogType(LogType type) const
Sets the progress log that should be used. The default type is NONE!
void fillIntensities(PeakIterator begin, PeakIterator end) const
Convenience function that applies fillIntensity() to an iterator range.
Definition: BaseModel.h:119
Param param_
Container for current parameters.
Definition: DefaultParamHandler.h:162
Baseline reduction.
Definition: DataProcessing.h:66