dhist_ecmf: Generate interpolating empirical cumulative mass function...

View source: R/dhist.R

dhist_ecmfR Documentation

Generate interpolating empirical cumulative mass function (ECMF) for a discrete histogram

Description

Generate interpolating empirical cumulative mass function (ECMF) for a discrete histogram

Usage

dhist_ecmf(dhist)

Arguments

dhist

A discrete histogram as a dhist object

Value

An interpolating ECMF as an approxfun object. This function will return the interpolated cumulative mass for a vector of arbitrary locations. If dhist$smoothing_window_width is zero, the ECMF will be piecewise constant. If dhist$smoothing_window_width is one, the ECMF will be piece-wise linear. If dhist$smoothing_window_width is any other value, the ECMF will not correctly represent the cumulative mass.


alan-turing-institute/network-comparison documentation built on June 7, 2022, 10:41 p.m.