Skip to content

Commit

Permalink
Scaling constant modified in log_derivative_smoothspline
Browse files Browse the repository at this point in the history
  • Loading branch information
khaors committed Jun 21, 2019
1 parent a88b976 commit 4b20567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ log_derivative_smoothspline <- function(t, s){
t1 <- log10(t)
t1a <- logseq(from = 1.01*min(t1), to = 0.99*max(t1), n = length(t1))
res1 <- predict(res, log10(t1a), deriv = 1)
results <- list(x = 10^(res1$x), y = abs(res1$y)/2, res = res)
results <- list(x = 10^(res1$x), y = abs(res1$y)/log(10), res = res)
return(results)
}
#' @title
Expand Down

0 comments on commit 4b20567

Please sign in to comment.