stehfest_inversion: stehfest_inversion

View source: R/laplace_inversion_utilities.R

stehfest_inversionR Documentation

stehfest_inversion

Description

Function to calculate the Laplace inverse transform using the stehfest algorithm

Usage

stehfest_inversion(t, coeffs, fun, arg1 = NULL, arg2 = NULL,
  arg3 = NULL)

Arguments

t

Numeric vector with the time

coeffs

Numeric vector with the coefficients

fun

function to be used

arg1, arg2, arg3

Optional arguments to be used by fun

Value

Numeric vector

Author(s)

Oscar Garcia-Cabrejo khaors@gmail.com

See Also

Other laplace functions: stehfest_coeffs

Examples

test <- function(p,...){1/p}
coeffs8 <- stehfest_coeffs(8)
td <- logseq(-2,4,30)
stehfest_inversion(td, coeffs8,test)

khaors/pumpingtest documentation built on June 10, 2025, 4:53 a.m.