aima.core.probability.domain.AbstractContinuousDomain 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.
The newest version!
package aima.core.probability.domain;
public abstract class AbstractContinuousDomain implements ContinuousDomain {
//
// 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
//
}