convo_plus: convo_plus convolves two pmfs by adding their values.

Description Usage Arguments Value

View source: R/utils.R

Description

Given two pmfs and a value vector, returns convolved pmf and value vector in matrix. Values at associated with probs along (x) are added to values associated with probs along (y) throughout a discretized x,y event space. Returns the set of prob:value pairs in a matrix with cols prob, value ordered by value.

Usage

1
convo_plus(x, y)

Arguments

x, y

are sparse matrices with cols c(prob,value)

Value

the set of prob:value pairs in a matrix with cols prob, value ordered by value.


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