public class UniformProbabilityComputer extends Object implements ProbabilityComputer
| Constructor and Description |
|---|
UniformProbabilityComputer()
Create a UniformProbabilityComputer where the density is defined over the unit inteval [0,1].
|
UniformProbabilityComputer(double min,
double max)
Create a UniformProbabilityComputer where the density is defined over the interval given
|
| Modifier and Type | Method and Description |
|---|---|
double |
probability(double x)
Return the probability associated with a certain value.The upper tail of the associated distribution is returned.
|
double |
probability(double x,
boolean upperTail)
Return the probability associated with a certain value, with choice of tail.
|
public UniformProbabilityComputer()
public UniformProbabilityComputer(double min,
double max)
min - max - public double probability(double x)
ProbabilityComputerprobability in interface ProbabilityComputerpublic double probability(double x,
boolean upperTail)
ProbabilityComputerprobability in interface ProbabilityComputerCopyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.