Skip to content

Commit daa9bf1

Browse files
dshemetovdsweber2
andauthored
Update tests/testthat/test-yeo-johnson.R
Co-authored-by: David Weber <[email protected]>
1 parent e729227 commit daa9bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-yeo-johnson.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ suppressPackageStartupMessages(source(here::here("R", "load_all.R")))
33
test_that("Yeo-Johnson transformation inverts correctly", {
44
expect_true(
55
map_lgl(seq(-5, 5, 0.1), function(lambda) {
6-
map_lgl(seq(0, 10, 0.1), \(x) abs(yj_inverse(yj_transform(x, lambda), lambda) - x) < 0.00001) %>% all()
6+
map_lgl(seq(-10, 10, 0.1), \(x) abs(yj_inverse(yj_transform(x, lambda), lambda) - x) < 0.00001) %>% all()
77
}) %>%
88
all()
99
)

0 commit comments

Comments
 (0)