aima.core.probability.mdp.RewardFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aima-core Show documentation
Show all versions of aima-core Show documentation
AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.
package aima.core.probability.mdp;
/**
* An interface for MDP reward functions.
*
* @param
* the state type.
* @author Ciaran O'Reilly
* @author Ravi Mohan
*/
public interface RewardFunction {
/**
* Get the reward associated with being in state s.
*
* @param s
* the state whose award is sought.
* @return the reward associated with being in state s.
*/
double reward(S s);
}