build_mats: build_mats condenses a sparse matrix down to a dense one.

Description Usage Arguments Value

View source: R/utils.R

Description

Given two vectors of equal length, returns a matrix where values of the first vector are nonzero.

Usage

1
build_mats(x, y)

Arguments

x

is a numeric vector of probabilities (a pmf)

y

is a numeric vector of values associated with x

Value

a dense matrix (x,y) excluding nonzero probabilities in x


crumplecup/muddier documentation built on Aug. 18, 2021, 11:02 a.m.