Examples#

Worked examples for ns-sdn. Each script is executed at documentation-build time, so the figures and printed output are produced by the code shown. Scripts are plain Python with reST in the module docstring and in # %% cell comments; run any of them directly with python examples/plot_<name>.py. The first needs no network; the second and third download the 10-year Treasury yield from FRED and need a FRED_API_KEY. The third is the paper’s full protocol, which takes longer than a documentation build should, so the build renders it without running it unless DOCS_RUN_ORSS=1 is set; run it directly to reproduce the published metrics and figures.

A series with a known decomposition

A series with a known decomposition

Reproducing the IEEE-ORSS DGS10 run

Reproducing the IEEE-ORSS DGS10 run

The 10-year Treasury yield and its spectral state

The 10-year Treasury yield and its spectral state