OpenMS
3.2.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
TransformationModelLowess.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: Hannes Roest $
6
// $Authors: Hannes Roest $
7
// --------------------------------------------------------------------------
8
9
#pragma once
10
11
#include <OpenMS/config.h>
// is this needed?
12
#include <
OpenMS/ANALYSIS/MAPMATCHING/TransformationModel.h
>
13
#include <
OpenMS/ANALYSIS/MAPMATCHING/TransformationModelInterpolated.h
>
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
35
~TransformationModelLowess
()
override
;
36
38
double
evaluate
(
double
value)
const override
39
{
40
return
model_->evaluate(value);
41
}
42
43
using
TransformationModel::getParameters
;
44
46
static
void
getDefaultParameters
(
Param
& params);
47
48
protected
:
50
TransformationModelInterpolated
*
model_
;
51
52
};
53
}
// namespace
54
TransformationModelInterpolated.h
TransformationModel.h
OpenMS::Param
Management and storage of parameters / INI files.
Definition:
Param.h:44
OpenMS::TransformationModelInterpolated
Interpolation model for transformations.
Definition:
TransformationModelInterpolated.h:45
OpenMS::TransformationModelLowess
Lowess (non-linear) model for transformations.
Definition:
TransformationModelLowess.h:25
OpenMS::TransformationModelLowess::TransformationModelLowess
TransformationModelLowess(const DataPoints &data, const Param ¶ms)
Constructor.
OpenMS::TransformationModelLowess::getDefaultParameters
static void getDefaultParameters(Param ¶ms)
Gets the default parameters.
OpenMS::TransformationModelLowess::~TransformationModelLowess
~TransformationModelLowess() override
Destructor.
OpenMS::TransformationModelLowess::evaluate
double evaluate(double value) const override
Evaluates the model at the given value.
Definition:
TransformationModelLowess.h:38
OpenMS::TransformationModelLowess::model_
TransformationModelInterpolated * model_
Pointer to the underlying interpolation.
Definition:
TransformationModelLowess.h:50
OpenMS::TransformationModel
Base class for transformation models.
Definition:
TransformationModel.h:29
OpenMS::TransformationModel::getParameters
const Param & getParameters() const
Gets the (actual) parameters.
OpenMS::TransformationModel::DataPoints
std::vector< DataPoint > DataPoints
Vector of coordinate pairs.
Definition:
TransformationModel.h:65
OpenMS
Main OpenMS namespace.
Definition:
openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
OpenMS
ANALYSIS
MAPMATCHING
TransformationModelLowess.h
Generated on Wed Sep 18 2024 16:01:46 for OpenMS by
1.9.1