From e3000a5989be48b47436d5c1921b48afbb5d2154 Mon Sep 17 00:00:00 2001 From: kradchen Date: Tue, 30 May 2023 10:12:28 +0800 Subject: [PATCH] Change betaValues --- src/config/config.h | 2 +- test/Detection_Test.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/config.h b/src/config/config.h index 97a3bc9..f4228e5 100644 --- a/src/config/config.h +++ b/src/config/config.h @@ -148,7 +148,7 @@ namespace Recon static std::string name = "TVAL3"; static int maxIter = 50; static Aurora::Matrix muValues = Aurora::Matrix::fromRawData(new double[1]{100}, 1); - static int betaValues = 1; + static Aurora::Matrix betaValues = Aurora::Matrix::fromRawData(new double[1]{1}, 1); static bool runTransmissionReco = true; } } diff --git a/test/Detection_Test.cpp b/test/Detection_Test.cpp index 8bb0953..2badb7b 100644 --- a/test/Detection_Test.cpp +++ b/test/Detection_Test.cpp @@ -40,7 +40,7 @@ protected: TEST_F(Detection_Test, detectTofAndAttMex) { - MatlabReader m("/home/krad/TestData/getBlockOfTransmissionData.mat"); + MatlabReader m("/home/sun/testData/transmissionDetection.mat"); auto AscanBlock = m.read("AscanBlock"); auto AscanRefBlock = m.read("AscanRefBlock"); @@ -48,7 +48,7 @@ TEST_F(Detection_Test, detectTofAndAttMex) { auto distBlockRef = m.read("distRefBlock"); auto sosWaterBlock = Recon::temperatureToSoundSpeed(m.read("waterTempBlock"),"marczak"); auto sosWaterRefBlock = Recon::temperatureToSoundSpeed(m.read("waterTempRefBlock"),"marczak"); - double expectedSOSWater = 1.511948131508464e+03; + double expectedSOSWater = 1.512677498767504e+03; auto result = Recon::detectTofAndAttMex( AscanBlock, AscanRefBlock, distBlock, distBlockRef, sosWaterBlock,