@Override public double getVariance() { return this.getDistribution().getVariance(); }
@Override public double getVariance() { return this.getDistribution().getVariance(); }
@Override public double getVariance() { return this.getDistribution().getVariance(); }
/** * Computes the Gaussian confidence interval given a distribution of * data, number of samples, and corresponding confidence interval * @param dataDistribution * UnivariateGaussian describing the distribution of the underlying data * @param numSamples * Number of samples in the underlying data * @param confidence * Confidence value to assume for the ConfidenceInterval * @return * ConfidenceInterval capturing the range of the mean of the data * at the desired level of confidence */ public static ConfidenceInterval computeConfidenceInterval( UnivariateDistribution<?> dataDistribution, int numSamples, double confidence ) { return INSTANCE.computeConfidenceInterval( dataDistribution.getMean().doubleValue(), dataDistribution.getVariance(), numSamples, confidence ); }
/** * Computes the Gaussian confidence interval given a distribution of * data, number of samples, and corresponding confidence interval * @param dataDistribution * UnivariateGaussian describing the distribution of the underlying data * @param numSamples * Number of samples in the underlying data * @param confidence * Confidence value to assume for the ConfidenceInterval * @return * ConfidenceInterval capturing the range of the mean of the data * at the desired level of confidence */ public static ConfidenceInterval computeConfidenceInterval( UnivariateDistribution<?> dataDistribution, int numSamples, double confidence ) { return INSTANCE.computeConfidenceInterval( dataDistribution.getMean().doubleValue(), dataDistribution.getVariance(), numSamples, confidence ); }
/** * Computes the Gaussian confidence interval given a distribution of * data, number of samples, and corresponding confidence interval * @param dataDistribution * UnivariateGaussian describing the distribution of the underlying data * @param numSamples * Number of samples in the underlying data * @param confidence * Confidence value to assume for the ConfidenceInterval * @return * ConfidenceInterval capturing the range of the mean of the data * at the desired level of confidence */ public static ConfidenceInterval computeConfidenceInterval( UnivariateDistribution<?> dataDistribution, int numSamples, double confidence ) { return INSTANCE.computeConfidenceInterval( dataDistribution.getMean().doubleValue(), dataDistribution.getVariance(), numSamples, confidence ); }