OpenMS
MaxLikeliFitter1D.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, 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 #pragma once
10 
12 
13 namespace OpenMS
14 {
15  class InterpolationModel;
16 
20  class OPENMS_DLLAPI MaxLikeliFitter1D : public Fitter1D
21  {
22  public:
25  {
26  }
27 
29  MaxLikeliFitter1D(const MaxLikeliFitter1D& source) : Fitter1D(source)
30  {
31  }
32 
34  ~MaxLikeliFitter1D() override
35  {
36  }
37 
40  {
41  if (&source == this)
42  return *this;
43 
44  Fitter1D::operator=(source);
45 
46  return *this;
47  }
48 
49  protected:
51  QualityType fitOffset_(std::unique_ptr<InterpolationModel>& model, const RawDataArrayType& set, const CoordinateType stdev1, const CoordinateType stdev2, const CoordinateType offset_step) const;
52 
53  void updateMembers_() override;
54  };
55 } // namespace OpenMS
Abstract base class for all 1D-dimensional model fitter.
Definition: Fitter1D.h:30
std::vector< PeakType > RawDataArrayType
Peak type data container type using for the temporary storage of the input data.
Definition: Fitter1D.h:43
Feature::QualityType QualityType
Quality of a feature.
Definition: Fitter1D.h:39
Feature::CoordinateType CoordinateType
Single coordinate.
Definition: Fitter1D.h:37
Fitter1D & operator=(const Fitter1D &source)
assignment operator
Abstract base class for all 1D-model fitters using maximum likelihood optimization.
Definition: MaxLikeliFitter1D.h:21
MaxLikeliFitter1D(const MaxLikeliFitter1D &source)
copy constructor
Definition: MaxLikeliFitter1D.h:29
MaxLikeliFitter1D()
default constructor
Definition: MaxLikeliFitter1D.h:24
MaxLikeliFitter1D & operator=(const MaxLikeliFitter1D &source)
assignment operator
Definition: MaxLikeliFitter1D.h:39
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
QualityType fitOffset_(std::unique_ptr< InterpolationModel > &model, const RawDataArrayType &set, const CoordinateType stdev1, const CoordinateType stdev2, const CoordinateType offset_step) const
fit an offset on the basis of the Pearson correlation coefficient
~MaxLikeliFitter1D() override
destructor
Definition: MaxLikeliFitter1D.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19