public class UniformDistribution extends Distribution
| Constructor and Description |
|---|
UniformDistribution(double lower,
double upper)
Create a uniform real distribution using the given lower and upper
bounds.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getLower() |
double |
getUpper() |
int |
hashCode() |
void |
setLower(double lower) |
void |
setUpper(double upper) |
java.lang.String |
toString() |
clonepublic UniformDistribution(double lower,
double upper)
throws org.apache.commons.math3.exception.NumberIsTooLargeException
lower - Lower bound of this distribution (inclusive).upper - Upper bound of this distribution (exclusive).org.apache.commons.math3.exception.NumberIsTooLargeException - if lower >= upper.public double getUpper()
public void setUpper(double upper)
public double getLower()
public void setLower(double lower)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object