Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
laresbernardo committed Dec 5, 2024
1 parent 5dd5df5 commit a272dcc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/crossbrand2.R
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,7 @@ fx_gradient <- function(x, coeff, alpha, inflexion, x_hist_carryover) {

fx_objective.chanel <- function(x, coeff, alpha, inflexion, x_hist_carryover) {
xAdstocked <- x + mean(x_hist_carryover)
xOut <- -coeff * sum((1 + inflexion**alpha / xAdstocked**alpha)**-1)
return(xOut)
-coeff * sum((1 + inflexion**alpha / xAdstocked**alpha)**-1)
}

eval_g_eq <- function(X, target_value) {
Expand Down

0 comments on commit a272dcc

Please sign in to comment.