R/bern_length.R

Defines functions bern.length

Documented in bern.length

bern.length <- function(lengths, pa, mode = "local"){
  if(mode == "local") out <- lengths * pa
  if(mode == "global") out <- sum(lengths * pa)
 out
}

Try the streamDAG package in your browser

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

streamDAG documentation built on Oct. 7, 2023, 1:08 a.m.