use range

This commit is contained in:
jgrewe 2018-11-07 09:30:53 +01:00
parent 8db863514b
commit ac552d99b2

View File

@ -19,7 +19,7 @@ rd = np.corrcoef(x, y)[0, 1]
# permutation:
nperm = 1000
rs = []
for i in np.arange(nperm) :
for i in range(nperm) :
xr=rng.permutation(x)
yr=rng.permutation(y)
rs.append( np.corrcoef(xr, yr)[0, 1] )