commit c22781f6603619a531437f01411e1d8ab4af9512 parent 5f05330cb3d9ec30347c07522de00624de9d6c67 Author: Fabian Oehlmann <oehlmann@in.tum.de> Date: Wed, 8 Jan 2014 18:03:30 +0000 rbf network Diffstat:
| M | src/ats/plugin_ats_ril.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ats/plugin_ats_ril.c b/src/ats/plugin_ats_ril.c @@ -613,7 +613,7 @@ agent_modify_eligibility (struct RIL_Peer_Agent *agent, agent->E[action][i] += feature[i]; break; case RIL_E_REPLACE: - agent->E[action][i] = agent->E[action][i]+feature[i] > 1 ? 1 : agent->E[action][i]+feature[i]; //TODO? Maybe remove as only accumulating traces really apply + agent->E[action][i] = (agent->envi->global_discount_variable * agent->envi->parameters.lambda * agent->E[action][i]) > feature[i] ? agent->E[action][i] : feature[i]; //TODO make replacing traces available break; case RIL_E_UPDATE: agent->E[action][i] *= agent->envi->global_discount_variable * agent->envi->parameters.lambda;