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#pragma once
2
13 public:
14 struct Output {
15 Output(const double annualConsumption) : annualConsumption(annualConsumption) {}
16
17 const double annualConsumption;
18 };
19
25 EstimateMethod(const double operatingTime, const double leakRateEstimate)
26 : operatingTime(operatingTime), leakRateEstimate(leakRateEstimate) {}
27
32 // return {flowRate, (flowRate * operatingTime * numberOfUnits * 60) / 1000 };
33 // return {(leakRateEstimate * operatingTime * 60) / 1000};
34 EstimateMethod::Output output((leakRateEstimate * operatingTime * 60) / 1000);
35 return output;
36 }
37
38 private:
39 double operatingTime, leakRateEstimate;
40};
41
EstimateMethod(const double operatingTime, const double leakRateEstimate)