From b75e2fc7ee11671e334f737586b1c0e0e5bf896c Mon Sep 17 00:00:00 2001 From: Biljana Bojovic Date: Wed, 15 Nov 2023 16:22:51 +0100 Subject: [PATCH] spectrum: Fix t-test in three-gpp-channel test suite --- src/spectrum/test/three-gpp-channel-test-suite.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spectrum/test/three-gpp-channel-test-suite.cc b/src/spectrum/test/three-gpp-channel-test-suite.cc index 3ad2a1570..a06b74156 100644 --- a/src/spectrum/test/three-gpp-channel-test-suite.cc +++ b/src/spectrum/test/three-gpp-channel-test-suite.cc @@ -234,7 +234,7 @@ ThreeGppChannelMatrixComputationTest::DoRun() // the receive antenna elements" double t = (sampleMean - txAntennaElements[0] * txAntennaElements[1] * rxAntennaElements[0] * rxAntennaElements[1]) / - (sampleMean / std::sqrt(numIt)); + (sampleStd / std::sqrt(numIt)); // Using a significance level of 0.05, we reject the null hypothesis if |t| is // greater than the critical value from a t-distribution with df = numIt-1