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, initialisegetName, setNamepublic 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 AbstractScoreFunctionpublic double score(WorldModel<? extends Entity> world, Timestep timestep)
ScoreFunctionscore in interface ScoreFunctionscore in class DelegatingScoreFunctionworld - The state of the world at the end of the timestep.timestep - The record of perception, commands and changes for the timestep.