Skip to content
Snippets Groups Projects

Improve predict_mixture

Merged Sebastian Henz requested to merge develop into master
1 file
+ 11
0
Compare changes
  • Side-by-side
  • Inline
@@ -55,6 +55,17 @@ test_that("results have not changed", {
reference <- c(88.2698383, 79.9617127, 78.1574808, 65.7999834, 0.3861678, 0)
expect_equal(new, reference, tolerance = 1e-5)
# diverse concentration_2 and custom effect_max
new <- predict_mixture(
model_1,
model_2,
c(0, 0.01, 0.1, 1, 7, 15),
c(0, 0.02, 0.2, 2, 14, 30),
0.3,
42
)$mixture_effect
reference <- c(88.2698383, 79.9617127, 78.1574808, 65.7999834, 0.3861678, 0) * 0.42
expect_equal(new, reference, tolerance = 1e-5)
})
Loading