MEASUR-Tools-Suite v1.0.11
The MEASUR Tools Suite is a collection of industrial efficiency calculations written in C++ and with bindings for compilation to WebAssembly.
Loading...
Searching...
No Matches
EstimateMethod.h
Go to the documentation of this file.
1
10#ifndef TOOLS_SUITE_ESTIMATEMETHOD_H
11#define TOOLS_SUITE_ESTIMATEMETHOD_H
12
14 public:
15 struct Output {
16 Output(const double annualConsumption) : annualConsumption(annualConsumption) {}
17
18 const double annualConsumption;
19 };
20
26 EstimateMethod(const double operatingTime, const double leakRateEstimate)
27 : operatingTime(operatingTime), leakRateEstimate(leakRateEstimate) {}
28
33 // return {flowRate, (flowRate * operatingTime * numberOfUnits * 60) / 1000 };
34 // return {(leakRateEstimate * operatingTime * 60) / 1000};
35 EstimateMethod::Output output((leakRateEstimate * operatingTime * 60) / 1000);
36 return output;
37 }
38
39 private:
40 double operatingTime, leakRateEstimate;
41};
42
43#endif
EstimateMethod(const double operatingTime, const double leakRateEstimate)