removed sqrt from chi2

This commit is contained in:
2025-05-24 01:01:52 +02:00
parent 752837f4ec
commit bd50335d53
5 changed files with 20 additions and 15 deletions

View File

@@ -31,7 +31,8 @@ def plot_chi2(ax, s, data_file, rate):
alpha = data['alpha']
freqs = data['freqs']
pss = data['pss']
chi2 = np.abs(data['prss'])*0.5/np.sqrt(pss.reshape(1, -1)*pss.reshape(-1, 1))
prss = data['prss']
chi2 = np.abs(prss)*0.5/(pss.reshape(1, -1)*pss.reshape(-1, 1))
ax.set_visible(True)
ax.set_aspect('equal')
i0 = np.argmin(freqs < -fcutoff)