use range
This commit is contained in:
parent
8db863514b
commit
ac552d99b2
@ -19,7 +19,7 @@ rd = np.corrcoef(x, y)[0, 1]
|
|||||||
# permutation:
|
# permutation:
|
||||||
nperm = 1000
|
nperm = 1000
|
||||||
rs = []
|
rs = []
|
||||||
for i in np.arange(nperm) :
|
for i in range(nperm) :
|
||||||
xr=rng.permutation(x)
|
xr=rng.permutation(x)
|
||||||
yr=rng.permutation(y)
|
yr=rng.permutation(y)
|
||||||
rs.append( np.corrcoef(xr, yr)[0, 1] )
|
rs.append( np.corrcoef(xr, yr)[0, 1] )
|
||||||
|
Reference in New Issue
Block a user