R/gconv.R

Defines functions gconv

Documented in gconv

gconv<-function(g1,g2){
  #convolution of probability generating functions g1 and g2
  o<-stats::convolve(g1,rev(g2),type="open")
  o<-pmin(1,pmax(0,o))
  names(o)<-(0:(length(o)-1))
  o
}

Try the iTOS package in your browser

Any scripts or data that you put into this service are public.

iTOS documentation built on Sept. 11, 2024, 8:57 p.m.