Skip to content

Commit

Permalink
NNS 10.7 Beta
Browse files Browse the repository at this point in the history
  • Loading branch information
OVVO-Financial authored Feb 29, 2024
1 parent 005c1c3 commit a65d3b2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
Binary file modified NNS_10.7.tar.gz
Binary file not shown.
Binary file modified NNS_10.7.zip
Binary file not shown.
3 changes: 1 addition & 2 deletions R/dy_dx.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ dy.dx <- function(x, y, eval.point = NULL, messages = TRUE){

first.deriv <- (rise_1 + rise_2) / (run_1 + run_2)


## Second derivative form:
# [f(x+h) - 2(f(x)) + f(x-h)] / h^2
f.x__h <- estimates.min
Expand All @@ -106,7 +105,7 @@ dy.dx <- function(x, y, eval.point = NULL, messages = TRUE){

f.x_h <- estimates.max

second.deriv <- (f.x_h - two_f.x + f.x__h) / ((run_1 + run_2) ^ 2)
second.deriv <- (((f.x_h - estimates) / run_1) - ((estimates - f.x__h) / run_2)) / (run_1 + run_2)
}

bandwidths <- list("First" = first.deriv, "Second" = second.deriv)
Expand Down

0 comments on commit a65d3b2

Please sign in to comment.