public class ConfidenceInterval extends AbstractCloneableSerializable
| Constructor and Description | 
|---|
ConfidenceInterval(ConfidenceInterval other)
Copy constructor 
 | 
ConfidenceInterval(double centralValue,
                  double lowerBound,
                  double upperBound,
                  double confidence,
                  int numSamples)
Creates a new instance of ConfidenceInterval 
 | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
getCentralValue()
Getter for centralValue 
 | 
double | 
getConfidence()
Getter for confidence 
 | 
double | 
getLowerBound()
Getter for lowerBound 
 | 
int | 
getNumSamples()
Getter for numSamples 
 | 
double | 
getUpperBound()
Getter for upperBound 
 | 
protected void | 
setCentralValue(double centralValue)
Setter for centralValue 
 | 
protected void | 
setConfidence(double confidence)
Setter for confidence 
 | 
protected void | 
setLowerBound(double lowerBound)
Setter for lowerBound 
 | 
void | 
setNumSamples(int numSamples)
Setter for numSamples 
 | 
protected void | 
setUpperBound(double upperBound)
Setter for upperBound 
 | 
java.lang.String | 
toString()  | 
boolean | 
withinInterval(double value)
Returns whether or not the value is within the specified interval 
 | 
clonepublic ConfidenceInterval(double centralValue,
                          double lowerBound,
                          double upperBound,
                          double confidence,
                          int numSamples)
centralValue - Central value of the statistic (expectation, maximum likelihood, etc.)lowerBound - Lower bound for the statisticupperBound - Upper bound for the statisticconfidence - Confidence that the statistic is within the bound, or 1-alpha, on the
 interval [0,1], where confidence=0 means definitely not within the bound
 and confidence=1 means definite within the bound.numSamples - The number of samples to take.public ConfidenceInterval(ConfidenceInterval other)
other - ConfidenceInterval to clonepublic double getLowerBound()
protected void setLowerBound(double lowerBound)
lowerBound - Lower bound for the statisticpublic double getUpperBound()
protected void setUpperBound(double upperBound)
upperBound - Upper bound for the statisticpublic double getCentralValue()
protected void setCentralValue(double centralValue)
centralValue - Central value of the statistic (expectation, maximum likelihood, etc.)public double getConfidence()
protected void setConfidence(double confidence)
confidence - Confidence that the statistic is within the bound, or 1-alpha, on the
 interval [0,1], where confidence=0 means definitely not within the bound
 and confidence=1 means definite within the bound.public java.lang.String toString()
toString in class java.lang.Objectpublic int getNumSamples()
public void setNumSamples(int numSamples)
numSamples - Number of sample values used to create the intervalpublic boolean withinInterval(double value)
value - Value to determine if its within the interval