convo_minus: derived pmf by subtraction

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 (y) are subtracted from values associated with probs along (x) 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

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.