median.dst: Median of a Distribution

View source: R/median.R

median.dstR Documentation

Median of a Distribution

Description

Finds the median of a distribution.

Usage

## S3 method for class 'dst'
median(x, ...)

Arguments

x

Distribution to calculate median from.

...

Not used.

Details

Median is calculated as the 0.5-quantile when not found in the distribution. So, when the median is non-unique, the smallest of the possibilities is taken.

Value

Median of a distribution; single numeric.

Examples

d <- dst_gamma(3, 3)
median(d)

vincenzocoia/distionary documentation built on Feb. 26, 2025, 11:09 a.m.