This commit is contained in:
Glenn Jocher 2020-01-19 16:56:32 -08:00
parent c91ffee852
commit d3738f5330
1 changed files with 1 additions and 1 deletions

View File

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