public class InverseScoreFunction extends DelegatingScoreFunction
child
Constructor and Description |
---|
InverseScoreFunction(java.lang.String name,
ScoreFunction child)
Create an InverseScoreFunction.
|
Modifier and Type | Method and Description |
---|---|
double |
score(WorldModel<? extends Entity> world,
Timestep timestep)
Calculate the score for a timestep.
|
java.lang.String |
toString() |
getChildFunction, initialise
getName, setName
public InverseScoreFunction(java.lang.String name, ScoreFunction child)
name
- The name of this function.child
- The child function to invert.public java.lang.String toString()
toString
in class AbstractScoreFunction
public double score(WorldModel<? extends Entity> world, Timestep timestep)
ScoreFunction
score
in interface ScoreFunction
score
in class DelegatingScoreFunction
world
- The state of the world at the end of the timestep.timestep
- The record of perception, commands and changes for the timestep.