public class UniformDistribution<N extends Number & Comparable<? super N>> extends Object implements Distribution<N>
LinearDistribution| Constructor and Description |
|---|
UniformDistribution(N min,
N max)
Create a new uniform distribution with the given min and max values.
|
UniformDistribution(Range<N> domain)
Create a new uniform distribution with the given
domain. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Function<N,Float64> |
getCDF()
Return a new CDF object.
|
Range<N> |
getDomain()
Return the domain of this probability distribution.
|
Function<N,Float64> |
getPDF()
Return a new PDF object.
|
int |
hashCode() |
String |
toString() |
public UniformDistribution(Range<N> domain)
domain.domain - the domain of the distribution.NullPointerException - if the domain is null.public UniformDistribution(N min, N max)
min - the minimum value of the domain.max - the maximum value of the domain.IllegalArgumentException - if min >= maxNullPointerException - if one of the arguments is null.public Range<N> getDomain()
DistributiongetDomain in interface Distribution<N extends Number & Comparable<? super N>>public Function<N,Float64> getPDF()
getPDF in interface Distribution<N extends Number & Comparable<? super N>>public Function<N,Float64> getCDF()
getCDF in interface Distribution<N extends Number & Comparable<? super N>>© 2007-2013 Franz Wilhelmstötter (2013-12-18 20:17)