This commit is contained in:
Glenn Jocher 2020-01-19 16:54:49 -08:00
parent abbf9fa2d4
commit 19f75f986d
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ if __name__ == '__main__':
method = 3 method = 3
s = 0.2 # 20% sigma s = 0.2 # 20% sigma
np.random.seed(int(time.time())) np.random.seed(int(time.time()))
g = np.array([1, 1, 1, 1, 1, 1, 1, 0, .1, 1, 0, 1, 1, 1, 1, 1, 1, 1]) # gains g = np.array([0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) # gains
ng = len(g) ng = len(g)
if method == 1: if method == 1:
v = (np.random.randn(ng) * np.random.random() * g * s + 1) ** 2.0 v = (np.random.randn(ng) * np.random.random() * g * s + 1) ** 2.0