Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hudde committed Jan 31, 2024
1 parent 43953b9 commit b51fe60
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions R/Malliavin_Geometric_Asian_Greeks.R
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,6 @@ Malliavin_Geometric_Asian_Greeks <- function(
payoff(initial_price * I_0/time_to_maturity, exercise_price) * weight)
}

dE <- function(weight) {
return(exp(-(r - dividend_yield) * time_to_maturity) *
mean(dpayoff(initial_price * I_0/time_to_maturity, exercise_price) * weight))
}

dE_paths <- function(weight) {
return(exp(-(r - dividend_yield) * time_to_maturity) *
dpayoff(initial_price * I_0/time_to_maturity, exercise_price) * weight)
}

# TODO: comment
I_0_geom <-
exp(calc_I(log(initial_price * X), steps, dt) / time_to_maturity)
Expand Down

0 comments on commit b51fe60

Please sign in to comment.