Scheduler
exponentialMaxTempEstimator.cpp
Go to the documentation of this file.
1 
11 
12 #include <cmath>
13 
14 #include <scheduler/system.h>
15 #include <scheduler/processor.h>
16 
17 using namespace RlScheduler;
18 
20  proc(Scheduler::System::getInstance()->getProc()), scaling(sc), offset(off)
21 {
22 }
23 
25 {
26  return exp((proc->getTemperature() + offset)*scaling);
27 }
28 
double getTemperature() const
Definition: processor.cpp:185
ExponentialMaxTempEstimator(double scaling, double offset)