Skip to content
Snippets Groups Projects
Commit 84cba2ee authored by Bas Nijholt's avatar Bas Nijholt
Browse files

update 'uniform_sampling_1d' example in the docs

parent 7408ed57
No related branches found
No related tags found
No related merge requests found
Pipeline #13519 passed
......@@ -60,11 +60,8 @@ simple (but naive) strategy is to *uniformly* sample the domain:
.. jupyter-execute::
def uniform_sampling_1d(interval, scale, data):
# Note that we never use 'data'; the loss is just the size of the subdomain
x_left, x_right = interval
x_scale, _ = scale
dx = (x_right - x_left) / x_scale
def uniform_sampling_1d(xs, ys):
dx = xs[1] - xs[0]
return dx
def f_divergent_1d(x):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment