Skip to content

Instantly share code, notes, and snippets.

@olliefr
Created May 26, 2016 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olliefr/29f873631bd014af2d2d9262a4a79080 to your computer and use it in GitHub Desktop.
Save olliefr/29f873631bd014af2d2d9262a4a79080 to your computer and use it in GitHub Desktop.
The public interface to genlattice.american.
genlattice.vanilla.american.call <- function(Asset, Volatility, IntRate, DividendRate, Strike, Expiry, NoSteps) {
return (genlattice.american(Asset=Asset, Volatility=Volatility, IntRate=IntRate, DividendRate=DividendRate, Strike=Strike, Expiry=Expiry, NoSteps=NoSteps, Payoff=payoff.vanilla.call))
}
genlattice.vanilla.american.put <- function(Asset, Volatility, IntRate, DividendRate, Strike, Expiry, NoSteps) {
return (genlattice.american(Asset=Asset, Volatility=Volatility, IntRate=IntRate, DividendRate=DividendRate, Strike=Strike, Expiry=Expiry, NoSteps=NoSteps, Payoff=payoff.vanilla.put))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment