inv_cdf: Generic method for obtaining the quantile (inverse cdf) of an...

View source: R/generic_dist.R

inv_cdfR Documentation

Generic method for obtaining the quantile (inverse cdf) of an object.

Description

Generic method for obtaining the quantile (inverse cdf) of an object.

Usage

inv_cdf(x, ...)

Arguments

x

The object to obtain the quantile of.

...

Additional arguments to pass.

Value

A function computing the quantile (inverse CDF).

Examples

x <- normal(0, 1)
Q <- inv_cdf(x)
Q(0.5)   # 0 (median of standard normal)
Q(0.975) # approximately 1.96

algebraic.dist documentation built on Feb. 27, 2026, 5:06 p.m.