Merge pull request #62 from jinyangustc/master
Fix systemic_resample() float indexes bug
This commit is contained in:
commit
1d6984446b
@ -165,7 +165,7 @@ def residual_resample2(w):
|
||||
def systemic_resample(w):
|
||||
N = len(w)
|
||||
Q = np.cumsum(w)
|
||||
indexes = np.zeros(N)
|
||||
indexes = np.zeros(N, 'int')
|
||||
t = np.linspace(0, 1-1/N, N) + random()/N
|
||||
|
||||
i, j = 0, 0
|
||||
|
Loading…
Reference in New Issue
Block a user