pide_merton_grid: Solve a PIDE/variational inequality under Merton's...

Description Usage Arguments Details

View source: R/RcppExports.R

Description

Solve a PIDE/variational equality under Merton's jump-diffusion dynamics using an implicit-explicit finite difference scheme. A composite trapezoid rule is used to approximate the jump-integral term.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
pide_merton_grid(
  spot,
  strike,
  maturity,
  parameters,
  N = 100L,
  M = 100L,
  L = 51L,
  what = "call",
  style = "american"
)

Arguments

spot

the spot price

strike

the strike sprice

maturity

the maturity of the option contract

parameters

the vector of parameters, see details.

N

the time resolution

M

the space resolution

L

the jump resolution

what

the payoff to use

style

'european' for PDE/PIDE problems, 'american' for variational inequalities

Details

The vector parameters must contain:


shill1729/OptionPricer documentation built on June 11, 2020, 12:18 a.m.