quantile Function

public pure function quantile(x, q) result(rst)

Computes the specified quantile of a data set using the SAS Method 4.

See Also

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: x(:)

An N-element array containing the data.

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

The quantile to compute (e.g. 0.25 computes the 25% quantile).

Return Value real(kind=real64)

The result.


Contents