ADTF
Loading...
Searching...
No Matches
polynomial_function.h
Go to the documentation of this file.
1
19
20#ifndef _MAPPER_POLYNOMIAL_MODULE_HEADER
21#define _MAPPER_POLYNOMIAL_MODULE_HEADER
22
24
25namespace ddl {
26namespace mapping {
27
40class PolynomialFunction : public MapperElementBase<Function> {
41public:
46 static std::string getType()
47 {
48 return "polynomial";
49 }
50
55 {
56 return {{"a", {0.0}}, {"b", {0.0}}, {"c", {0.0}}, {"d", {0.0}}, {"e", {0.0}}};
57 }
58
59 PolynomialFunction() = delete;
65 PolynomialFunction(std::string name, Properties properties);
66
68 std::shared_ptr<Function::Callable> getCallable() const override;
69
74 {
78 double a = 0.0;
82 double b = 0.0;
86 double c = 0.0;
90 double d = 0.0;
94 double e = 0.0;
95 };
96
97private:
98 TransformParameter _transform_parameter;
99};
100
101} // namespace mapping
102} // namespace ddl
103
104#endif // _MAPPER_POLYNOMIAL_MODULE_HEADER
std::unordered_map< std::string, ParameterDescription > Description
Definition mapper_interfaces.h:593
MapperElementBase(std::string name, Properties properties)
Definition mapper_base_types.h:43
Polynomial function with type string "polynomial". The callable function retrieved with getCallable()...
Definition polynomial_function.h:40
PolynomialFunction(std::string name, Properties properties)
CTOR.
std::shared_ptr< Function::Callable > getCallable() const override
Get a Function Callable.
static Properties getDefaultProperties()
Get the Default Properties to register within factory.
Definition polynomial_function.h:54
static std::string getType()
Get the Type as string to register within factory.
Definition polynomial_function.h:46
Function::Description getDescription() const override
Get the parameter descriptions.
definition of the mapping namespace
Definition ddl.h:50
std::unordered_map< std::string, Property > Properties
Properties class as set of key - property value pairs This proerties are used to adjust the readers a...
Definition mapper_interfaces.h:331
definition of the ddl namespace
Definition codec.h:21
Definition polynomial_function.h:74
double b
Definition polynomial_function.h:82
double d
Definition polynomial_function.h:90
double e
Definition polynomial_function.h:94
double a
Definition polynomial_function.h:78
double c
Definition polynomial_function.h:86