SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
linear.h
Go to the documentation of this file.
1#ifndef SENSESP_TRANSFORMS_LINEAR_H_
2#define SENSESP_TRANSFORMS_LINEAR_H_
3
4#include "lambda_transform.h"
5
6namespace sensesp {
7
18class Linear : public LambdaTransform<float, float, float, float> {
19 public:
20 Linear(float multiplier, float offset, const String& config_path = "");
21
22 private:
23 static float (*function_)(float, float, float);
24 static const ParamInfo param_info_[];
25};
26
27} // namespace sensesp
28
29#endif
Construct a new transform based on a single function.
Performs a linear transform on the input value: output_ = (input * multiplier) + offset.
Definition linear.h:18
Linear(float multiplier, float offset, const String &config_path="")
Definition linear.cpp:19