{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## SYDE556/750 Assignment 2: Spiking Neurons\n", "\n", "- Due Date: Feb 15th: Assignment #2 (due at midnight) \n", "- Total marks: 20 (20% of final grade)\n", "- Late penalty: 1 mark per day\n", "- It is recommended that you Python.\n", "- *Do not use or refer to any code from Nengo*" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 1) Generating a random input signal\n", "\n", "### 1.1) Gaussian white noise\n", "\n", "Create a function called that generates a randomly varying $x(t)$ signal chosen from a white noise distribution. Call it 'generate_signal' and ensure that it returns $x(t)$ and $X(\\omega)$.\n", "\n", "The inputs to the function are:\n", "\n", "- ``T``: the length of the signal in seconds\n", "- ``dt``: the time step in seconds\n", "- ``rms``: the root mean square power level of the signal. That is, the resulting signal should have $\\sqrt{{1 \\over T} \\int{x(t)^2}dt}=rms$\n", "- ``limit``: the maximum frequency for the signal (in Hz)\n", "- ``seed``: the random number seed to use (so we can regenerate the same signal again)\n", "\n", "