measure_to_smooth_iso.Rd
Convert a discrete probability distribution to a smooth mostly-isotonic function
measure_to_smooth_iso(
mu,
n,
kernel = "normal",
bandwidth = 0.1,
tol = .Machine$double.eps * 10
)
A named list containing two vectors of the same length, `vals`
and `probs`
.
mu represents a discrete probability distribution.
integer number of equidistant points on [min(mu$vals), max(mu$vals)] which will be the support of the returned isotonic function
the kernel to be used. Can be abbreviated. Type ?ksmooth
for details.
the bandwidth. The kernels are scaled so that their
quartiles (viewed as probability densities) are at +/- 0.25*bandwidth. Type ?ksmooth
for details.
tolerance for shifting cumulative probabilities
Vector representing isotonic function values