org.statcato.statistics.inferential
Class ConfidenceInterval
- java.lang.Object
-
- org.statcato.statistics.inferential.ConfidenceInterval
-
- Direct Known Subclasses:
- CI2PopMeanSigmaKnown, CI2PopMeanSigmaUnknown, CI2PopProp, CIMatchedPairs, CIOnePopMeanSigmaKnown, CIOnePopMeanSigmaUnknown, CIOnePopProp
public abstract class ConfidenceInterval extends java.lang.ObjectConfidence interval class. This abstract class is the base class of all confidence interval objects. All classes extending the ConfidenceInterval class must implement the marginOfError and criticalValue methods.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor and Description ConfidenceInterval()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description doublecenter()Returns the center of the interval.abstract doublecriticalValue()Returns the critical value corresponding to the given confidence level.doublelowerLimit()Returns the lower limit of the confidence interval.abstract doublemarginOfError()Returns the margin of error.java.lang.StringtoString()Returns a string representing the confidence interval (lower limit, upper limit).doubleupperLimit()Returns the upper limit of the confidence interval.
-
-
-
Method Detail
-
marginOfError
public abstract double marginOfError()
Returns the margin of error.- Returns:
- margin of error
-
criticalValue
public abstract double criticalValue()
Returns the critical value corresponding to the given confidence level.- Returns:
- critical value
-
lowerLimit
public double lowerLimit()
Returns the lower limit of the confidence interval.- Returns:
- lower limit
-
upperLimit
public double upperLimit()
Returns the upper limit of the confidence interval.- Returns:
- upper limit
-
center
public double center()
Returns the center of the interval.- Returns:
- center
-
toString
public java.lang.String toString()
Returns a string representing the confidence interval (lower limit, upper limit).- Overrides:
toStringin classjava.lang.Object- Returns:
- string
-
-
DMelt 3.0 © DataMelt by jWork.ORG