public class NormalDistribution<N extends Number & Comparable<? super N>> extends Object implements Distribution<N>
Constructor and Description |
---|
NormalDistribution(Range<N> domain,
double mean,
double var)
Create a new normal distribution object.
|
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 NormalDistribution(Range<N> domain, double mean, double var)
domain
- the domain of the distribution.mean
- the mean value of the normal distribution.var
- the variance of the normal distribution.NullPointerException
- if the domain
is null
.IllegalArgumentException
- if the variance is negative.public Range<N> getDomain()
Distribution
getDomain
in interface Distribution<N extends Number & Comparable<? super N>>
public Function<N,Float64> getCDF()
getCDF
in interface Distribution<N extends Number & Comparable<? super N>>
public Function<N,Float64> getPDF()
getPDF
in interface Distribution<N extends Number & Comparable<? super N>>
© 2007-2014 Franz Wilhelmstötter (2014-03-07 19:35)