From 630418317eb58f995805ea3624d39e9f5de269ec Mon Sep 17 00:00:00 2001 From: mbi6245 Date: Thu, 18 Jul 2024 09:36:04 -0700 Subject: [PATCH] add missing scaling factor --- tests/test_transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_transforms.py b/tests/test_transforms.py index ddc7d60..26e2d16 100644 --- a/tests/test_transforms.py +++ b/tests/test_transforms.py @@ -84,7 +84,7 @@ def test_delta_result(transform): mu = np.random.uniform(0.1, 1.0, size=10) sigma = np.random.uniform(0.1, 1.0, size=10) mu_ref = UNIVARIATE_TRANSFORM_DICT[transform][0](mu) - sigma_ref = sigma * UNIVARIATE_TRANSFORM_DICT[transform][1](mu) + sigma_ref = sigma * UNIVARIATE_TRANSFORM_DICT[transform][1](mu) / np.sqrt(N) mu_trans, sigma_trans = transform_univariate(mu, sigma, N, transform) assert np.allclose(mu_trans, mu_ref) assert np.allclose(sigma_trans, sigma_ref)