def standard_normal(shape=[]): """standard_normal(n) or standard_normal([n, m, ...]) returns array of random numbers normally distributed with mean 0 and standard deviation 1""" if shape == []: shape = None return mt.standard_normal(shape)
def add_fuzz(p, step): return np.array(p) + fz_per_step * step * nrm.standard_normal(2)