confidence_interval Interface

public interface confidence_interval

Computes the confidence interval for the specified distribution.

See Also


Contents


Module Procedures

private pure function confidence_interval_scalar(dist, alpha, s, n) result(rst)

Computes the confidence interval for the specified distribution.

Arguments

Type IntentOptional Attributes Name
class(distribution), intent(in) :: dist

The distribution object defining the probability distribution to establish the confidence level.

real(kind=real64), intent(in) :: alpha

The probability value of interest. For instance, use a value of 0.05 for a confidence level of 95%.

real(kind=real64), intent(in) :: s

The sample standard deviation.

integer(kind=int32), intent(in) :: n

The number of samples in the data set.

Return Value real(kind=real64)

The result.

private pure function confidence_interval_array(dist, alpha, x) result(rst)

Computes the confidence interval for the specified distribution.

Arguments

Type IntentOptional Attributes Name
class(distribution), intent(in) :: dist

The distribution object defining the probability distribution to establish the confidence level.

real(kind=real64), intent(in) :: alpha

The probability value of interest. For instance, use a value of 0.05 for a confidence level of 95%.

real(kind=real64), intent(in) :: x(:)

An N-element array containing the data to analyze.

Return Value real(kind=real64)

The result.