OpenMS
GaussFitter1D.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: $
7 // --------------------------------------------------------------------------
8 
9 
10 #pragma once
11 
13 
14 namespace OpenMS
15 {
21  class OPENMS_DLLAPI GaussFitter1D :
22  public MaxLikeliFitter1D
23  {
24 public:
25 
28 
30  GaussFitter1D(const GaussFitter1D & source);
31 
33  ~GaussFitter1D() override;
34 
36  virtual GaussFitter1D & operator=(const GaussFitter1D & source);
37 
39  static Fitter1D * create()
40  {
41  return new GaussFitter1D();
42  }
43 
45  QualityType fit1d(const RawDataArrayType & range, std::unique_ptr<InterpolationModel>& model) override;
46 
48  static const String getProductName()
49  {
50  return "GaussFitter1D";
51  }
52 
53 protected:
54 
55  void updateMembers_() override;
56  };
57 }
58 
Abstract base class for all 1D-dimensional model fitter.
Definition: Fitter1D.h:34
std::vector< PeakType > RawDataArrayType
Peak type data container type using for the temporary storage of the input data.
Definition: Fitter1D.h:47
Feature::QualityType QualityType
Quality of a feature.
Definition: Fitter1D.h:43
Gaussian distribution fitter (1-dim.) approximated using linear interpolation.
Definition: GaussFitter1D.h:23
static Fitter1D * create()
create new GaussFitter1D object (function needed by Factory)
Definition: GaussFitter1D.h:39
virtual GaussFitter1D & operator=(const GaussFitter1D &source)
assignment operator
GaussFitter1D()
Default constructor.
~GaussFitter1D() override
destructor
GaussFitter1D(const GaussFitter1D &source)
copy constructor
QualityType fit1d(const RawDataArrayType &range, std::unique_ptr< InterpolationModel > &model) override
return interpolation model
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
static const String getProductName()
name of the model (needed by Factory)
Definition: GaussFitter1D.h:48
Abstract base class for all 1D-model fitters using maximum likelihood optimization.
Definition: MaxLikeliFitter1D.h:21
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22