R/s4-getLevyDensity.R

#' Return the Lévy density of a Bernstein function
#'
#' Returns the *Lévy density* with `lower`, `upper`, and `type` attributes if
#' continuous and returns a `data.frame` with named columns `x` (atoms) and `y`
#' (weights) as well as a type attribute if discrete. The `type` attribute is
#' either `"continuous"` or `"discrete"`.
#'
#' @param object An object deriving from [LevyBernsteinFunction-class].
#'
#' @importFrom methods setGeneric
#' @family Bernstein function generics
#' @export
setGeneric(
  "getLevyDensity",
  function(object) {
    standardGeneric("getLevyDensity")
  }
)
hsloot/rmo documentation built on May 1, 2024, 4:28 a.m.