Class SampleMeanEstimator
- java.lang.Object
-
- de.uka.ipd.sdq.statistics.estimation.SampleMeanEstimator
-
- All Implemented Interfaces:
IConfidenceEstimator
,IPointEstimator
public class SampleMeanEstimator extends Object implements IPointEstimator, IConfidenceEstimator
Estimator for the sample mean.
-
-
Constructor Summary
Constructors Constructor Description SampleMeanEstimator()
SampleMeanEstimator(IContinousPDFFactory pdfFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfidenceInterval
estimateConfidence(List<Double> samples, double level)
Estimates the confidence interval.double
estimatePoint(List<Double> samples)
Conducts a point estimation.
-
-
-
Constructor Detail
-
SampleMeanEstimator
public SampleMeanEstimator()
-
SampleMeanEstimator
public SampleMeanEstimator(IContinousPDFFactory pdfFactory)
-
-
Method Detail
-
estimateConfidence
public ConfidenceInterval estimateConfidence(List<Double> samples, double level)
Description copied from interface:IConfidenceEstimator
Estimates the confidence interval.- Specified by:
estimateConfidence
in interfaceIConfidenceEstimator
- Parameters:
samples
- the values for which a confidence interval is to be estimated.level
- the confidence level. Use values between 0 and 1. For instance use 0.95 to estimate the 95% confidence interval.- Returns:
-
estimatePoint
public double estimatePoint(List<Double> samples)
Description copied from interface:IPointEstimator
Conducts a point estimation.- Specified by:
estimatePoint
in interfaceIPointEstimator
- Parameters:
samples
- the values for which a specific point is to be estimated.- Returns:
-
-