as_smoothed_dhist: Set dhist smoothing

View source: R/dhist.R

as_smoothed_dhistR Documentation

Set dhist smoothing

Description

Returns a "smoothed" copy of a dhist object with its smoothing_window_width attribute set to the value provided smoothing_window_width parameter.

Usage

as_smoothed_dhist(dhist, smoothing_window_width)

Arguments

dhist

A discrete histogram as a dhist object

smoothing_window_width

If greater than 0, the discrete histogram will be treated as having the mass at each location "smoothed" uniformly across a bin centred on the location and having width = smoothing_window_width

Value

A copy of a dhist object with its smoothing_window_width attribute set to the value provided smoothing_window_width parameter.


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