SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
linear.h
Go to the documentation of this file.
1#ifndef _linear_H_
2#define _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, 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