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

com.bnd.math.domain.rand.UniformDistribution Maven / Gradle / Ivy

The newest version!
package com.bnd.math.domain.rand;

/** 
 * @author © Peter Banda
 * @since 2011
 */
public class UniformDistribution extends RandomDistribution {

	private T from;
	private T to;

	public UniformDistribution() {
		// no-op
	}

	public UniformDistribution(T from, T to) {
		this.from = from;
		this.to = to;
	}

	public T getFrom() {
		return from;
	}

	public void setFrom(T from) {
		this.from = from;
	}

	public T getTo() {
		return to;
	}

	public void setTo(T to) {
		this.to = to;
	}

	@Override
	public RandomDistributionType getType() {
		return RandomDistributionType.Uniform;
	}

	@Override
	public Class getValueType() {
		return (Class) from.getClass();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy