Skip to content

Commit

Permalink
fix bug in kernel function used for probabilistic flux
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanplunkett committed Sep 25, 2024
1 parent d52ee27 commit 584c3ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/calc_martern_variance.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ k_m3 <- function(d, gamma = 40, kl = 40) {
}

k_m5 <- function(d, gamma = 40, kl = 40) {
gamma * (1 + sqrt(5) * d / kl + 5 * d^2 / (3 * l^2)) * exp(-sqrt(5) * d / kl)
gamma * (1 + sqrt(5) * d / kl + 5 * d^2 / (3 * kl^2)) * exp(-sqrt(5) * d / kl)

Check warning on line 14 in R/calc_martern_variance.R

View check run for this annotation

Codecov / codecov/patch

R/calc_martern_variance.R#L14

Added line #L14 was not covered by tests
}

k_sq <- function(d, gamma, kl) {
Expand Down

0 comments on commit 584c3ae

Please sign in to comment.