From 874770326dc2063b56b0058f2f86ff47eccc6406 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 9 Dec 2021 15:19:32 +0100 Subject: Need to normalize estimate of length. --- collectStokesData.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collectStokesData.hpp b/collectStokesData.hpp index b230ac6..54062f5 100644 --- a/collectStokesData.hpp +++ b/collectStokesData.hpp @@ -108,7 +108,7 @@ void collectStokesData(std::string tag, unsigned N, Generator& r, Real ε, Real ell += c.df(t).norm(); } - file << oldGs.size() << " " << ell << " " << c.totalCost(nTest) / (nTest) << " " << sqrt(imEnergyError / (Real)(nTest)) << " " << sqrt(reConstraintError / (Real)(nTest)) << " " << sqrt(imConstraintError / (Real)(nTest)) << std::endl; + file << oldGs.size() << " " << ell / nTest << " " << c.totalCost(nTest) / (nTest) << " " << sqrt(imEnergyError / (Real)(nTest)) << " " << sqrt(reConstraintError / (Real)(nTest)) << " " << sqrt(imConstraintError / (Real)(nTest)) << std::endl; for (const Vector& gi : c.gs) { file << gi.transpose() << std::endl; } -- cgit v1.2.3-70-g09d2