public class DistanceTravelledScoreFunction extends AbstractScoreFunction
Constructor and Description |
---|
DistanceTravelledScoreFunction()
Construct a DistanceTravelledScoreFunction.
|
Modifier and Type | Method and Description |
---|---|
double |
score(WorldModel<? extends Entity> world,
Timestep timestep)
Calculate the score for a timestep.
|
getName, initialise, setName, toString
public DistanceTravelledScoreFunction()
public double score(WorldModel<? extends Entity> world, Timestep timestep)
ScoreFunction
world
- The state of the world at the end of the timestep.timestep
- The record of perception, commands and changes for the timestep.