R/is.diffusion.R

is.diffusion <-
  function (obj) 
{
    if (inherits(obj, "diffusion") & is.list(obj) & (length(obj) == 2)) 
      if (all(lapply(obj, length) == 1) & 
            all(unlist(lapply(obj, is.character)))) 
            return(identical(names(obj), c("mean","var")))                                         
    return(FALSE)
  }

Try the GaDiFPT package in your browser

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

GaDiFPT documentation built on May 2, 2019, 1:18 p.m.