#include <OpenMS/TRANSFORMATIONS/FEATUREFINDER/ProductModel.h>
The predicted intensity is simply the product of the intensities in each dimension
ProductModel Parameters are explained on a separate page.
Public Types | |
typedef DPeak< D >::IntensityType | IntensityType |
typedef DPosition< D > | PositionType |
typedef DPeakArray< DPeak< D > > | SamplesType |
Public Member Functions | |
ProductModel () | |
Default constructor. | |
ProductModel (const ProductModel &source) | |
copy constructor | |
virtual | ~ProductModel () |
destructor | |
virtual ProductModel & | operator= (const ProductModel &source) |
assignment operator | |
IntensityType | getIntensity (const PositionType &pos) const |
intensity equals product of intensities in each dimension | |
ProductModel & | setModel (UInt dim, BaseModel< 1 > *dist) |
set model dist for dimension dim | |
BaseModel< 1 > * | getModel (UInt dim) const |
IntensityType | getScale () const |
return the intensity scaling factor | |
void | setScale (IntensityType scale) |
set the intensity scaling factor | |
void | getSamples (SamplesType &cont) const |
get reasonable set of samples from the model (i.e. for printing) | |
Static Public Member Functions | |
static BaseModel< D > * | create () |
create new ProductModel object (needed by Factory) | |
static const String | getProductName () |
Returns the name of the model. | |
Protected Member Functions | |
void | updateMembers_ () |
This method is used to update extra member variables at the end of the setParam() method. | |
Protected Attributes | |
std::vector< BaseModel< 1 > * > | distributions_ |
IntensityType | scale_ |
typedef DPeak<D>::IntensityType IntensityType |
Reimplemented from BaseModel.
typedef DPosition<D> PositionType |
Reimplemented from BaseModel.
typedef DPeakArray<DPeak<D> > SamplesType |
Reimplemented from BaseModel.
ProductModel | ( | ) | [inline] |
Default constructor.
ProductModel | ( | const ProductModel< D > & | source | ) | [inline] |
copy constructor
virtual ~ProductModel | ( | ) | [inline, virtual] |
destructor
virtual ProductModel& operator= | ( | const ProductModel< D > & | source | ) | [inline, virtual] |
assignment operator
IntensityType getIntensity | ( | const PositionType & | pos | ) | const [inline, virtual] |
static BaseModel<D>* create | ( | ) | [inline, static] |
create new ProductModel object (needed by Factory)
static const String getProductName | ( | ) | [inline, static] |
Returns the name of the model.
ProductModel& setModel | ( | UInt | dim, | |
BaseModel< 1 > * | dist | |||
) | [inline] |
set model dist
for dimension dim
dist
is supposed to be allocated by new because it will be freed if ProductModel is destroyed or the model for that dimensions changes. For that reason no model dist
should be assigned to multiple ProductModels.
ProductModel parameters are set when calling ProductModel::getParameters().
IntensityType getScale | ( | ) | const [inline] |
return the intensity scaling factor
void setScale | ( | IntensityType | scale | ) | [inline] |
set the intensity scaling factor
void getSamples | ( | SamplesType & | cont | ) | const [inline, virtual] |
void updateMembers_ | ( | ) | [inline, protected, virtual] |
This method is used to update extra member variables at the end of the setParam() method.
Also call it at the end of the derived classes' copy constructor and assignment operator.
The default implementation is empty.
Reimplemented from BaseModel.
std::vector< BaseModel<1>* > distributions_ [protected] |
IntensityType scale_ [protected] |
Generated Tue Apr 1 15:36:47 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |