Skip to content

Commit

Permalink
non-vec test fun
Browse files Browse the repository at this point in the history
  • Loading branch information
yannrichet authored Nov 25, 2022
1 parent c70ab24 commit 54b61c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/test/cases.Morris/sobol.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ f <- function(X) {
a <- c(0, 1, 4.5, 9, 99, 99, 99, 99)
y <- 1
for (j in 1:8) {
y <- y * (abs(4 * X[, j] - 2) + a[j]) / (1 + a[j])
y <- y * (abs(4 * X[j] - 2) + a[j]) / (1 + a[j])
}
matrix(y,nrow=nrow(X))
y
}

input.f = list(
Expand Down
4 changes: 2 additions & 2 deletions src/test/cases/sobol.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ f <- function(X) {
a <- c(0, 1, 4.5, 9, 99, 99, 99, 99)
y <- 1
for (j in 1:8) {
y <- y * (abs(4 * X[, j] - 2) + a[j]) / (1 + a[j])
y <- y * (abs(4 * X[j] - 2) + a[j]) / (1 + a[j])
}
matrix(y,nrow=nrow(X))
y
}

input.f = list(
Expand Down

0 comments on commit 54b61c7

Please sign in to comment.