R/JumpProcess.R

setMethod("jumpProcess", "MarkedPointProcess",
           function(object, ...) {
             .Object <- new("JumpProcess")
             as(.Object, "MarkedPointProcess") <- object
             .Object@jumpVar <- "jump"
             return(.Object)
           }
          )

setMethod("jumpProcess", "data.frame",
          function(object, continuousData, ...) {
            callGeneric(markedPointProcess(object, continuousData), ...)
          }
          )

setMethod("plot", c("JumpProcess", "missing"),
          function(x, y, ...) {
            callGeneric(x = as(x, "MarkedPointProcess"), y = "@variable", ...)
          }
          )


## TODO: Reimplement the jump process plots with the new plotting framework.

Try the ppstat package in your browser

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

ppstat documentation built on May 2, 2019, 5:26 p.m.