{ "metadata": { "celltoolbar": "Slideshow", "name": "", "signature": "sha256:c3aeef5b2da2c8fbc29048a354e579b8a7d43080799d33436b3bc81b3ae95662" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "skip" } }, "source": [ "Set some useful LaTeX commands for later in the document:\n", "$ \\newcommand{\\Int}[2] {\\displaystyle \\int\\limits_{#1}^{#2}} $\n", "$ \\newcommand{\\Prod}[2] {\\displaystyle \\prod\\limits_{#1}^{#2}} $\n", "$ \\newcommand{\\Sum}[2] {\\displaystyle \\sum\\limits_{#1}^{#2}} $ \n", "\n", "### \\Int{lower}{upper} : $ \\Int{lower}{upper},\\qquad $ \\Prod{lower}{upper} : $ \\Prod{lower}{upper},\\qquad $ \\Sum{lower}{upper} : $ \\Sum{lower}{upper} $ ###\n", "\n", "$ \\newcommand{subNsubR}[3] {{}_{#1} #2_{#3}} $\n", "$ \\newcommand{rust}[1] {{\\require{color}\\color{Bittersweet}#1}} $\n", "$ \\newcommand{sky}[1] {{\\require{color}\\color{SkyBlue}#1}} $\n", "\n", "### \\subNsubR{n}{K}{r} : $ \\subNsubR{n}{K}{r},\\qquad $ \\rust{q} : $ \\rust{q},\\qquad $ \\sky{q} : $ \\sky{q} $" ] }, { "cell_type": "code", "collapsed": false, "input": [ "'''\n", "debinningWithNewStatistics.ipynb\n", "This file is an ipython notebook designed to be converted to reveal.js\n", "slides via this command:\n", " ipython nbconvert debinningWithNewStatistics.ipynb --to=slides --post=serve [--config slides_config.py]\n", "This file also contains the main body of debinning work in the code blocks below.\n", "\n", "Copyright (C) 2015 Abram Krislock\n", "\n", "Talks given from ~= this version of the slides:\n", " \"Debinning: Data Smoothing with a New Probability Calculus\"\n", " - Fysisk institutt, Universitetet i Oslo, February 25, 2015\n", " - Mitchell Institute for Fundamental Physics and Astronomy, Texas A&M University, March 13, 2015\n", "\n", "This program is free software: you can redistribute it and/or modify\n", "it under the terms of the GNU General Public License as published by\n", "the Free Software Foundation, either version 3 of the License, or\n", "(at your option) any later version.\n", "\n", "This program is distributed in the hope that it will be useful,\n", "but WITHOUT ANY WARRANTY; without even the implied warranty of\n", "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n", "GNU General Public License for more details.\n", "\n", "You should have received a copy of the GNU General Public License\n", "along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.txt.\n", "'''\n", "\n", "\n", "import sys\n", "sys.path[0] = '..'\n", "from __future__ import division\n", "import numpy as np\n", "from time import time\n", "import bisect\n", "import operator as op\n", "\n", "from utilities import settings\n", "import utilities.sampleFunctions as funcs\n", "import utilities.probCalc as pc\n", "import utilities.plotting as debinPlot\n", "import utilities.minimizers as miniz\n", "reload(funcs)\n", "reload(pc)\n", "reload(debinPlot)\n", "reload(miniz)\n", "\n", "%matplotlib inline\n", "from matplotlib import pyplot as plt\n", "from IPython.display import HTML" ], "language": "python", "metadata": { "slideshow": { "slide_type": "skip" } }, "outputs": [], "prompt_number": 1 }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#