[Commits] [svn:einsteintoolkit] pyGWAnalysis/trunk/DataAnalysis/ (Rev. 10)
reisswig at tapir.caltech.edu
reisswig at tapir.caltech.edu
Tue Mar 27 19:41:27 CDT 2012
User: reisswig
Date: 2012/03/27 07:41 PM
Modified:
/trunk/DataAnalysis/
DataAnalysis.py
Log:
Fix to previous commit.
File Changes:
Directory: /trunk/DataAnalysis/
===============================
File [modified]: DataAnalysis.py
Delta lines: +3 -3
===================================================================
--- trunk/DataAnalysis/DataAnalysis.py 2012-03-28 00:38:58 UTC (rev 9)
+++ trunk/DataAnalysis/DataAnalysis.py 2012-03-28 00:41:26 UTC (rev 10)
@@ -737,8 +737,8 @@
# first, compute DeltaPhi analytically according to Boyle et al.
DeltaPhi = 0
for ii in range (0, subDF1.Length()):
- DeltaPhi += (subDF1.f[ii]-subDF2.f[ii]) / (subDF1.Length()-1)
- DeltaPhi /= (x1-x0)
+ DeltaPhi += (subDF1.f[ii]-subDF2.f[ii])
+ DeltaPhi /= (subDF1.Length()-1)
# Now compute error
err = 0
for ii in range (0, subDF1.Length()):
@@ -776,7 +776,7 @@
DeltaPhi = 0
for ii in range (0, subDF1.Length()):
DeltaPhi += (subDF1.f[ii]-subDF2.f[ii]) / (subDF1.Length()-1)
- DeltaPhi /= (x1-x0)
+ DeltaPhi /= (subDF1.Length()-1)
err = 0
for ii in range (0, subDF1.Length()):
err += (subDF1.f[ii]-subDF2.f[ii]-DeltaPhi)**2
More information about the Commits
mailing list