public class ChebyshevInequality extends AbstractCloneableSerializable implements ConfidenceIntervalEvaluator<java.util.Collection<java.lang.Double>>
Modifier and Type | Field and Description |
---|---|
static ChebyshevInequality |
INSTANCE
This class has no members, so here's a static instance.
|
Constructor and Description |
---|
ChebyshevInequality()
Creates a new instance of ChebyshevInequality
|
Modifier and Type | Method and Description |
---|---|
ConfidenceInterval |
computeConfidenceInterval(java.util.Collection<java.lang.Double> data,
double confidence)
Computes the Chebyshev Inequality for the given level of confidence.
|
ConfidenceInterval |
computeConfidenceInterval(double sampleMean,
double sampleVariance,
int numSamples,
double confidence)
Computes the Chebyshev Inequality for the given level of confidence.
|
clone
public static final ChebyshevInequality INSTANCE
public ChebyshevInequality()
public ConfidenceInterval computeConfidenceInterval(java.util.Collection<java.lang.Double> data, double confidence)
computeConfidenceInterval
in interface ConfidenceIntervalEvaluator<java.util.Collection<java.lang.Double>>
data
- Data from which to estimate the mean and varianceconfidence
- Confidence value to find the range of values forpublic ConfidenceInterval computeConfidenceInterval(double sampleMean, double sampleVariance, int numSamples, double confidence)
computeConfidenceInterval
in interface ConfidenceIntervalEvaluator<java.util.Collection<java.lang.Double>>
sampleMean
- The sample mean of the datasampleVariance
- The sample variance of the datanumSamples
- The number of samples in the dataconfidence
- Confidence value to find the range of values for