Convert a discrete probability distribution to an isotonic function

measure_to_iso(mu, n = NULL, tol = .Machine$double.eps * 10000)

Arguments

mu

A named list containing two vectors of the same length, `vals` and `probs`. mu represents a discrete probability distribution.

n

integer number of equidistant points on [min(mu$vals), max(mu$vals)] which will be the support of the returned isotonic function

tol

tolerance for shifting cumulative probabilities

Value

Vector representing isotonic function values