Median of a distribution assuming quantile is provided.

# S3 method for Distribution
median(x, na.rm = NULL, ...)

Arguments

x

Distribution.

na.rm

ignored, added for consistency with S3 generic.

...

ignored, added for consistency with S3 generic.

Value

Quantile function evaluated at 0.5 as a numeric.

Details

The median is computed as the quantile function evaluated at 0.5. If the quantile is not found in the distribution (analytically or numerically), returns error.

R6 Usage

$median()

See also