All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aima.core.probability.mdp.RewardFunction Maven / Gradle / Ivy

Go to download

AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.

There is a newer version: 3.0.0
Show newest version
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);
}