Beispiel #1
0
double
FuncExp::evaluate(const State * s) const 
{
  double ans = s->evaluateFE(this);
 
  if(JudderPNEs && hasChangedCtsly)
  {
        ans += RobustPNEJudder*(1-2*getRandomNumberUniform()); //if not robustness testing this change will not be activated    
  };
	return ans;
};
Beispiel #2
0
 double getRandomNumberPsuedoNormal()
 {
   
   int noToAverage = 4;
   double total = 0;
 
   for(int i = 1; i <= noToAverage; ++i)
   {
      total += getRandomNumberUniform();
   };
 
   return total/noToAverage;
 }