feynman_kac: Compute conditional expectations and optimally stopped...

Description Usage Arguments Value

View source: R/feynman_kac.R

Description

Vectorized solver for PDE, PIDE and variational inequality problems over the parameter for the terminal payoff function.

Usage

1
feynman_kac(K, payoff, setup, variational = FALSE, exponential = FALSE)

Arguments

K

the parameter for the payoff functions

payoff

string either "cdf", "put", "call" or "straddle" (the payoff functions with one parameter)

setup

output from either pde_setup or pide_setup

variational

boolean TRUE for variational inequalities or FALSE for plain PDEs or PIDEs

exponential

boolean to exponentiate the input to the payoff function or not

Value

vector


shill1729/FeynmanKacSolver documentation built on May 19, 2020, 8:23 p.m.