public class LinearDistribution<N extends Number & Comparable<? super N>> extends Object implements Distribution<N>
This distribution has the following cdf.
The only restriction is that the integral of the cdf must be one.
If the value of y2 < 0, the value of x2 is decreased so that the resulting triangle (x1,0), (x1,y1), (x2,0) has an area of one.
Constructor and Description |
---|
LinearDistribution(Range<N> domain,
double y1) |
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 LinearDistribution(Range<N> domain, double y1)
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)