summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2021-12-09 15:19:32 +0100
committerJaron Kent-Dobias <jaron@kent-dobias.com>2021-12-09 15:19:32 +0100
commit874770326dc2063b56b0058f2f86ff47eccc6406 (patch)
tree821d024955ea4cb99616b73cc6711dcdc5734388
parent1b9a55a1436b98b6804bc3a140297093e98a30e7 (diff)
downloadcode-874770326dc2063b56b0058f2f86ff47eccc6406.tar.gz
code-874770326dc2063b56b0058f2f86ff47eccc6406.tar.bz2
code-874770326dc2063b56b0058f2f86ff47eccc6406.zip
Need to normalize estimate of length.
-rw-r--r--collectStokesData.hpp2
1 files changed, 1 insertions, 1 deletions
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<Complex>& gi : c.gs) {
file << gi.transpose() << std::endl;
}