Scheduler
monomialMaxTempEstimator.cpp
Go to the documentation of this file.
1 
11 
12 #include <scheduler/system.h>
13 #include <scheduler/processor.h>
14 
15 using namespace RlScheduler;
16 
18  proc(Scheduler::System::getInstance()->getProc()), degree(deg)
19 {
20 }
21 
23 {
24  if (degree < 0)
25  return 0.0;
26  const double temp = proc->getTemperature();
27  double result = 1.0;
28  for (int i = 0; i < degree; i++)
29  {
30  result *= temp;
31  }
32  return result;
33 }
34 
list temp
Definition: bigtemp.py:9
double getTemperature() const
Definition: processor.cpp:185