OpenMS
RANSACModelQuadratic.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: 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  {
24  class OPENMS_DLLAPI RansacModelQuadratic
25  : public RansacModel<RansacModelQuadratic>
26  {
27  public:
28  static ModelParameters rm_fit_impl(const DVecIt& begin, const DVecIt& end);
29 
30  static double rm_rsq_impl(const DVecIt& begin, const DVecIt& end);
31 
32  static double rm_rss_impl(const DVecIt& begin, const DVecIt& end, const ModelParameters& coefficients);
33 
34  static DVec rm_inliers_impl(const DVecIt& begin, const DVecIt& end, const ModelParameters& coefficients, double max_threshold);
35 
36  };
37 
38  }
39 
40 
41 }
Implementation of a quadratic RANSAC model fit.
Definition: RANSACModelQuadratic.h:26
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