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 processdata package in your browser

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

processdata documentation built on May 2, 2019, 5:23 p.m.