Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion esda/moran.py
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ def __moments(self):
# ---------------------------------------------------------
# Total randomization null, Sokal 1998, Eqs. A3 & A4*
# ---------------------------------------------------------
m4 = z**4 / n
m4 = (z**4).sum() / n
b2 = m4 / m2**2

expectation = -wi / (n - 1)
Expand Down
20 changes: 10 additions & 10 deletions esda/tests/test_moran.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,16 +587,16 @@ def test_local_moments(self, w):
EI = -np.ones((10,)) / 9
VI = np.array(
[
0.47374172,
0.47356458,
0.47209663,
0.15866023,
0.15972526,
0.47376436,
0.46927721,
0.24584217,
0.26498308,
0.47077467,
0.394432,
0.394432,
0.394432,
0.148043,
0.148043,
0.394432,
0.394432,
0.230173,
0.230173,
0.394432,
]
)

Expand Down
Loading