call_payoff | R Documentation |
The call_payoff function calculate payoffs from trajectory.
call_payoff(asset_price, strike)
asset_price |
numeric vector, price of the asset over time. |
strike |
numeric value, strike price of the option. |
A numeric value, european call option payoff.
x <- generate_scenarios(100, 0, 0.3) call_payoff(x[, 1], strike = 100) call_payoff(c(100, 120), strike = 107) call_payoff(c(100, 120, 107), strike = 107)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.