public class NormalProbabilityComputer extends Object implements ProbabilityComputer
Constructor and Description |
---|
NormalProbabilityComputer(double mean,
double variance) |
Modifier and Type | Method and Description |
---|---|
double |
probability(double value)
Return the probability associated with a certain value.The upper tail of the associated distribution is returned.
|
double |
probability(double value,
boolean upperTail)
Return the probability associated with a certain value, with choice of tail.
|
public NormalProbabilityComputer(double mean, double variance)
mean
- variance
- public double probability(double value)
ProbabilityComputer
probability
in interface ProbabilityComputer
public double probability(double value, boolean upperTail)
ProbabilityComputer
probability
in interface ProbabilityComputer
Copyright © 2003–2022 UBC Michael Smith Laboratories. All rights reserved.