Skip to content

Commit

Permalink
add ipynb examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMBury committed Mar 15, 2019
1 parent 898f910 commit 1a4eeea
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 4 deletions.
113 changes: 109 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,109 @@
*practice*
*playground*
*nb
symbolic_computation
# Experimentation
##################
playground/
symbolic_computation


# Compiled source
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
*.pyc


# Distribution / packaging
############################
.Python
venv/
build/
dist/
downloads/
*egg-info/
lib/
lib64/
parts/
sdist/
var/
.installed.cfg
*.egg


# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db



# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class


# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/


# Sphinx documentation
docs/_build/

# PyBuilder
target/

# IPython Notebook
.ipynb_checkpoints

# pyenv
.python-version





78 changes: 78 additions & 0 deletions examples/ews_single.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Demo 1: Simulate the Ricker model and compute EWS\n",
"\n",
"In this demo, we simulate a single stochastic trajectory of the Ricker model to analyse. Alterantively, you could import your own time-series data."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Simulate the Ricker model"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"d=2"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"5"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"f=3\n",
"d+f"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.1"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
32 changes: 32 additions & 0 deletions examples/ews_single2.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.1"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit 1a4eeea

Please sign in to comment.