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

aima.core.probability.domain.AbstractDiscreteDomain Maven / Gradle / Ivy

Go to download

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

The newest version!
package aima.core.probability.domain;

public abstract class AbstractDiscreteDomain implements DiscreteDomain {

	//
	// START-Domain
	@Override
	public boolean isFinite() {
		return false;
	}

	@Override
	public boolean isInfinite() {
		return true;
	}

	@Override
	public int size() {
		throw new IllegalStateException(
				"You cannot determine the size of an infinite domain");
	}

	@Override
	public abstract boolean isOrdered();
	// END-Domain
	//
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy