{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# p03: Band-limited interpolation"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We will interpolate following functions using band limited interpolation on an infinite grid.\n",
"\n",
"**Delta function**\n",
"\n",
"$$\n",
"v(x) = \\begin{cases}\n",
"1, & x =0 \\\\\n",
"0, & \\textrm{otherwise}\n",
"\\end{cases}\n",
"$$\n",
"\n",
"**Square wave**\n",
"\n",
"$$\n",
"v(x) = \\begin{cases}\n",
"1, & |x| \\le 3 \\\\\n",
"0, & \\textrm{otherwise}\n",
"\\end{cases}\n",
"$$\n",
"\n",
"**Hat function**\n",
"\n",
"$$\n",
"v(x) = \\max(0, 1-|x|/3)\n",
"$$\n",
"\n",
"Since all functions are zero away from origin, we can restrict to some finite interval, say $[-10,10]$."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"%config InlineBackend.figure_format='svg'\n",
"from numpy import arange,maximum,abs,zeros,sin,pi\n",
"from matplotlib.pyplot import subplot,figure,plot,grid,axis"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"\n",
"\n",
"\n"
],
"text/plain": [
"