com.bnd.math.domain.rand.RepeatedDistribution Maven / Gradle / Ivy
The newest version!
package com.bnd.math.domain.rand;
/**
* @author © Peter Banda
* @since 2014
*/
public class RepeatedDistribution extends RandomDistribution {
private T[] values;
public RepeatedDistribution() {
// no-op
}
public RepeatedDistribution(T[] values) {
this.values = values;
}
public T[] getValues() {
return values;
}
public void setValues(T[] values) {
this.values = values;
}
@Override
public Class getValueType() {
return (Class) values[0].getClass();
}
@Override
public RandomDistributionType getType() {
return RandomDistributionType.Repeated;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy