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