OpenMS
RANSACModelLinear.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: George Rosenberger $
6 // $Authors: George Rosenberger, Hannes Roest, Chris Bielow $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <OpenMS/config.h>
13 
14 namespace OpenMS
15 {
16 
17  namespace Math
18  {
19 
25  class OPENMS_DLLAPI RansacModelLinear
26  : public RansacModel<RansacModelLinear>
27  {
28  public:
29  static ModelParameters rm_fit_impl(const DVecIt& begin, const DVecIt& end);
30 
31  static double rm_rsq_impl(const DVecIt& begin, const DVecIt& end);
32 
33  static double rm_rss_impl(const DVecIt& begin, const DVecIt& end, const ModelParameters& coefficients);
34 
35  static DVec rm_inliers_impl(const DVecIt& begin, const DVecIt& end, const ModelParameters& coefficients, double max_threshold);
36 
37  };
38 
39 
40  }
41 
42 
43 }
Implementation of a linear RANSAC model fit.
Definition: RANSACModelLinear.h:27
static ModelParameters rm_fit_impl(const DVecIt &begin, const DVecIt &end)
static double rm_rsq_impl(const DVecIt &begin, const DVecIt &end)
static double rm_rss_impl(const DVecIt &begin, const DVecIt &end, const ModelParameters &coefficients)
static DVec rm_inliers_impl(const DVecIt &begin, const DVecIt &end, const ModelParameters &coefficients, double max_threshold)
Generic plug-in template base class using 'Curiously recurring template pattern' (CRTP) to allow for ...
Definition: RANSACModel.h:33
DVec::const_iterator DVecIt
Definition: RANSACModel.h:37
std::vector< double > ModelParameters
Definition: RANSACModel.h:38
std::vector< DPair > DVec
Definition: RANSACModel.h:36
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19