
aima.core.probability.domain.Domain 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.domain;
/**
* Artificial Intelligence A Modern Approach (3rd Edition): page 486.
*
* Every random variable has a domain - the set of possible values it can
* take on. The domain of Total for two dice is the set {2,...,12} and
* the domain of Die1 is {1,...,6}. A Boolean random variable has the
* domain {true, false}.
*
* @author Ciaran O'Reilly
*/
public interface Domain {
/**
*
* @return true if the Domain is finite, false otherwise (i.e. discrete
* (like the integers) or continuous (like the reals)).
*/
boolean isFinite();
/**
*
* @return !isFinite().
*/
boolean isInfinite();
/**
*
* @return the size of the Domain, only applicable if isFinite() == true.
*/
int size();
/**
*
* @return true if the domain is ordered, false otherwise. i.e. you can
* specify 1 object from the domain is < or = another object in the
* domain.
*/
boolean isOrdered();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy