Skip to content

Commit

Permalink
Fix normalization for undiluted bonds.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcwitt committed Nov 10, 2014
1 parent b6355c2 commit 234d35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bonds.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def bonds(N, sigma=0., distance=chord_distance):
"""

r = distance(N, np.arange(N))
cc = (2./N)/sum(r[1:]**(-2.*sigma))
cc = 1./sum(r[1:]**(-2.*sigma))
c = sqrt(cc)

return [(i, j, normal(0, c/r[j-i]**sigma))
Expand Down

0 comments on commit 234d35f

Please sign in to comment.