Commit 8bbdc687 authored by Massimiliano Lincetto's avatar Massimiliano Lincetto
Browse files

fluctuate only on xy plane

parent 73ad9b1d
This diff is collapsed.
......@@ -16,6 +16,12 @@ def load_footprint(filename):
def fluct(mu, sigma = 1.0):
return np.random.normal(mu, sigma)
def fluct_xy(fp, sigma = 1.0):
xy = np.random.normal(fp[:, 0:2], sigma)
z = fp[:, 2]
return np.c_[ xy, z ]
def radius(p):
return np.sqrt(p[:,0]**2 + p[:,1]**2)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment