compQ-methods: Quantile of a histogram

compQR Documentation

Quantile of a histogram

Description

Computes the quantile of a distributionH object at a given level, i.e. the value Q(p) = F^{-1}(p) of its quantile function.

Usage

compQ(object, p)

Arguments

object

A distributionH object.

p

A number between 0 and 1.

Value

A number, the quantile of order p.

See Also

compP

Examples

mydist <- distributionH(x = c(1, 2, 3, 10), p = c(0, 0.1, 0.5, 1))
compQ(mydist, 0.5) # the median
compQ(mydist, 0) # the minimum
compQ(mydist, 1) # the maximum
compQ(mydist, 0.25) # the first quartile

HistDAWass documentation built on Oct. 29, 2026, 5:07 p.m.