mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Ensemble: Function: Randomize Uniform sample.
This commit is contained in:
1 parent
876780a349
commit
4d4df1bde2
1 file changed
+4
-1
@@ -156,7 +156,10 @@ class Uniform(Function):
|
||||
|
||||
step = (t - b) / nb
|
||||
|
||||
return np.arange(b, t, step)
|
||||
r = np.arange(b, t, step)
|
||||
np.random.shuffle(r)
|
||||
|
||||
return r
|
||||
|
||||
|
||||
class Custom(Function):
|
||||
|
||||
Reference in new issue
Block a user