Parcourir la source

Suppr method EMA (utilisation d'un prog specifique)

Arthur Brandao il y a 6 ans
Parent
commit
0c0537cdc7
2 fichiers modifiés avec 1 ajouts et 13 suppressions
  1. 0 10
      Bandit/ControlBandit.cpp
  2. 1 3
      Bandit/ControlBandit.hpp

+ 0 - 10
Bandit/ControlBandit.cpp

@@ -62,9 +62,6 @@ fillAndHeuristic ControlBandit::next() {
 			case MT_EPS:
 				fah = this->methodEps();
 				break;
-			case MT_EMA:
-				fah = this->methodEma();
-				break;
 			default:
 				fah = this->methodAvg();
 		}
@@ -117,13 +114,6 @@ fillAndHeuristic ControlBandit::methodEps() {
 	return fah;
 }
 
-fillAndHeuristic ControlBandit::methodEma() {
-	fillAndHeuristic fah;
-	fah.fill = -1;
-	fah.heuristic = -1;
-	return fah;
-}
-
 int ControlBandit::getBestFill() {
 	int max = 0;
 	int fill = 0;

+ 1 - 3
Bandit/ControlBandit.hpp

@@ -11,7 +11,6 @@
 #define NB_HEURISTIC 7
 #define MT_AVG 0
 #define MT_EPS 1
-#define MT_EMA 2
 
 /* --- Structure --- */
 typedef struct {
@@ -23,7 +22,7 @@ class ControlBandit {
 	public:
 		ControlBandit();
 		~ControlBandit();
-		
+
 		void setMethod(int);
 		void setEpsilon(double);
 
@@ -47,7 +46,6 @@ class ControlBandit {
 
 		fillAndHeuristic methodAvg();
 		fillAndHeuristic methodEps();
-		fillAndHeuristic methodEma();
 
 		int getBestFill();
 		int getBestHeuristic();