Esempio n. 1
0
 private static double calcRatio(Checkpoint <Type> checkpoint, TimeAndReward currentTimeAndReward)
 {
     return((currentTimeAndReward.reward - checkpoint.timeAndReward.reward) / (currentTimeAndReward.time - checkpoint.timeAndReward.time));
 }
Esempio n. 2
0
 private void undoAllPolicyModificationsSinceCheckpoint(Checkpoint <Type> checkpoint)
 {
     checkpointAction.undoAllPolicyModifications(checkpoint.data);
 }