dhist_from_obs: Discrete histogram from observations

View source: R/dhist.R

dhist_from_obsR Documentation

Discrete histogram from observations

Description

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

Usage

dhist_from_obs(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.