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

aima.core.probability.proposition.AbstractTermProposition Maven / Gradle / Ivy

package aima.core.probability.proposition;

import aima.core.probability.RandomVariable;

public abstract class AbstractTermProposition extends AbstractProposition
		implements TermProposition {

	private RandomVariable termVariable = null;

	public AbstractTermProposition(RandomVariable var) {
		if (null == var) {
			throw new IllegalArgumentException(
					"The Random Variable for the Term must be specified.");
		}
		this.termVariable = var;
		addScope(this.termVariable);
	}

	public RandomVariable getTermVariable() {
		return termVariable;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy