OpenMS
TransformationModelLowess.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: Hannes Roest $
6 // $Authors: Hannes Roest $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <OpenMS/config.h> // is this needed?
14 
15 namespace OpenMS
16 {
17 
23  class OPENMS_DLLAPI TransformationModelLowess :
24  public TransformationModel
25  {
26 public:
32  TransformationModelLowess(const DataPoints& data, const Param& params);
33 
36 
38  double evaluate(double value) const override
39  {
40  return model_->evaluate(value);
41  }
42 
44 
46  static void getDefaultParameters(Param& params);
47 
48 protected:
51 
52  };
53 } // namespace
54 
Management and storage of parameters / INI files.
Definition: Param.h:44
Interpolation model for transformations.
Definition: TransformationModelInterpolated.h:45
Lowess (non-linear) model for transformations.
Definition: TransformationModelLowess.h:25
TransformationModelLowess(const DataPoints &data, const Param &params)
Constructor.
static void getDefaultParameters(Param &params)
Gets the default parameters.
~TransformationModelLowess() override
Destructor.
double evaluate(double value) const override
Evaluates the model at the given value.
Definition: TransformationModelLowess.h:38
TransformationModelInterpolated * model_
Pointer to the underlying interpolation.
Definition: TransformationModelLowess.h:50
Base class for transformation models.
Definition: TransformationModel.h:29
const Param & getParameters() const
Gets the (actual) parameters.
std::vector< DataPoint > DataPoints
Vector of coordinate pairs.
Definition: TransformationModel.h:65
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22