projects
/
morpheus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changes for R package on CRAN
[morpheus.git]
/
pkg
/
tests
/
testthat
/
test-optimParams.R
diff --git
a/pkg/tests/testthat/test-optimParams.R
b/pkg/tests/testthat/test-optimParams.R
index
8d0e7b3
..
6864804
100644
(file)
--- a/
pkg/tests/testthat/test-optimParams.R
+++ b/
pkg/tests/testthat/test-optimParams.R
@@
-50,7
+50,7
@@
naive_f = function(link, M1,M2,M3, p,β,b)
test_that("naive computation provides the same result as vectorized computations",
{
h <- 1e-7 #for finite-difference tests
test_that("naive computation provides the same result as vectorized computations",
{
h <- 1e-7 #for finite-difference tests
- tol <-
.25 * sqrt(h) #about 7.9 e-5
+ tol <-
1e-3 #large tolerance, necessary in some cases... (generally 1e-6 is OK)
for (dK in list( c(2,2), c(5,3)))
{
d = dK[1]
for (dK in list( c(2,2), c(5,3)))
{
d = dK[1]