*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit d93ffcd5 authored by Patrick Kappl's avatar Patrick Kappl
Browse files

Use randomly generated samples for testing

parent ea7d5292
No related branches found
No related tags found
No related merge requests found
......@@ -10,13 +10,15 @@ import numpy as np
#%%
def f(x):
return x * x
return 1 / x
#%%
n = 1000
x_list = [x / n for x in range(0, n + 1)]
n = 100
mu = 2
sigma = 1
x_list = np.random.normal(mu, sigma, n)
x_generator = jackknife.get_sample_generator(x_list)
y_list = [f(x / n) for x in range(0, n + 1)]
y_list = [f(x) for x in x_list]
y_generator = jackknife.get_sample_generator(y_list)
#%%
......
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