quantile

fun quantile(quantile: Double, error: Double = 0.01): Quantiles.Quantile

Creates a quantile for use in summaries.

Return

A Quantiles.Quantile instance representing the specified quantile and error.

Parameters

quantile

The desired quantile value (e.g., 0.5 for median). Must be between 0.0 and 1.0.

error

The acceptable error margin for the quantile. Defaults to 0.01. Must be between 0.0 and 1.0.

Throws

if quantile or error is outside the range 0.0, 1.0.