| Modifier and Type | Field and Description |
|---|---|
| private double | confidenceLevel
The asserted probability that the interval contains the population parameter |
| private double | lowerBound
Lower endpoint of the interval |
| private double | upperBound
Upper endpoint of the interval |
| Access | Constructor and Description |
|---|---|
| public | ConfidenceInterval(double
lower endpoint of the interval lowerBound, double upper endpoint of the interval upperBound, double coverage probability confidenceLevel)Create a confidence interval with the given bounds and confidence level. |
| Modifier and Type | Method and Description |
|---|---|
| private void | checkParameters(double
lower endpoint lower, double upper endpoint upper, double confidence level confidence)Verifies that (lower, upper) is a valid non-empty interval and confidence is strictly between 0 and 1. |
| public double | Returns: the asserted probability that the interval contains the population parameter
|
| public double | |
| public double | |
| public String | Returns: String representation of the confidence intervalOverrides java. Returns a string representation of the object. |
| confidenceLevel | back to summary |
|---|---|
| private double confidenceLevel The asserted probability that the interval contains the population parameter | |
| lowerBound | back to summary |
|---|---|
| private double lowerBound Lower endpoint of the interval | |
| upperBound | back to summary |
|---|---|
| private double upperBound Upper endpoint of the interval | |
| ConfidenceInterval | back to summary |
|---|---|
| public ConfidenceInterval(double lowerBound, double upperBound, double confidenceLevel) Create a confidence interval with the given bounds and confidence level. Preconditions:
| |
| checkParameters | back to summary |
|---|---|
| private void checkParameters(double lower, double upper, double confidence) Verifies that (lower, upper) is a valid non-empty interval and confidence is strictly between 0 and 1.
| |
| getConfidenceLevel | back to summary |
|---|---|
public double getConfidenceLevel()
| |
| getLowerBound | back to summary |
|---|---|
public double getLowerBound()
| |
| getUpperBound | back to summary |
|---|---|
public double getUpperBound()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |