dhist_from_obs_slow: Discrete histogram from observations (Pure R slow version)

View source: R/dhist.R

dhist_from_obs_slowR Documentation

Discrete histogram from observations (Pure R slow version)

Description

Generate a sparse discrete histogram from a set of discrete numeric observations

Usage

dhist_from_obs_slow(observations)

Arguments

observations

A vector of discrete numeric observations

Value

A sparse discrete histogram. Format is a dhist object, which is a list of class dhist with the following named elements:

  • locations: A 1D numeric vector of discrete locations

  • masses: A 1D numeric vector of the mass present at each location


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