OpenMS
BiGaussFitter1D.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 
14 
15 
16 namespace OpenMS
17 {
23  class OPENMS_DLLAPI BiGaussFitter1D :
24  public MaxLikeliFitter1D
25  {
26 public:
27 
30 
33 
35  ~BiGaussFitter1D() override;
36 
38  virtual BiGaussFitter1D & operator=(const BiGaussFitter1D & source);
39 
41  static Fitter1D * create()
42  {
43  return new BiGaussFitter1D();
44  }
45 
47  QualityType fit1d(const RawDataArrayType & range, std::unique_ptr<InterpolationModel>& model) override;
48 
50  static const String getProductName()
51  {
52  return "BiGaussFitter1D";
53  }
54 
55 protected:
56 
61 
62  void updateMembers_() override;
63  };
64 }
65 
BiGaussian distribution fitter (1-dim.) approximated using linear interpolation.
Definition: BiGaussFitter1D.h:25
static Fitter1D * create()
create new BiGaussModel object (function needed by Factory)
Definition: BiGaussFitter1D.h:41
Math::BasicStatistics statistics1_
statistics for first peak site
Definition: BiGaussFitter1D.h:58
Math::BasicStatistics statistics2_
statistics for second peak site
Definition: BiGaussFitter1D.h:60
QualityType fit1d(const RawDataArrayType &range, std::unique_ptr< InterpolationModel > &model) override
return interpolation model
virtual BiGaussFitter1D & operator=(const BiGaussFitter1D &source)
assignment operator
~BiGaussFitter1D() override
destructor
BiGaussFitter1D()
Default constructor.
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
BiGaussFitter1D(const BiGaussFitter1D &source)
copy constructor
static const String getProductName()
name of the model (needed by Factory)
Definition: BiGaussFitter1D.h:50
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
Calculates some basic statistical parameters of a distribution: sum, mean, variance,...
Definition: BasicStatistics.h:43
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