master-thesis/python/experiments/stochproc/test_stoch.org

32 lines
663 B
Org Mode
Raw Normal View History

2021-10-11 10:27:11 +02:00
#+PROPERTY: header-args :session stochproc :kernel python :pandoc t
#+begin_src jupyter-python
%load_ext autoreload
%autoreload 2
import numpy as np
import stoch as s
import matplotlib.pyplot as plt
#+end_src
#+RESULTS:
: The autoreload extension is already loaded. To reload it, use:
: %reload_ext autoreload
#+begin_src jupyter-python
t = np.linspace(0, 10, 100, dtype=float)
#+end_src
#+RESULTS:
#+begin_src jupyter-python
proc = s.svd(s.Kernels.squares(), t)
plt.plot(t, proc)
#+end_src
#+RESULTS:
:RESULTS:
| <matplotlib.lines.Line2D | at | 0x7fe13323bbe0> |
[[file:./.ob-jupyter/d2da10f85e8bf7f3c06b3e1972abfc9570e5f8f0.png]]
:END: