mirror of
https://github.com/vale981/master-thesis
synced 2025-03-10 05:06:38 -04:00
32 lines
663 B
Org Mode
32 lines
663 B
Org Mode
|
#+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:
|
||
|
|