From 42acd8f2af0459fcfeb9bb79ec48c3f95358b5e0 Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Sat, 1 Nov 2014 18:48:10 +0100 Subject: [PATCH] assignment for vector strength projec --- projects/project_vector_strength/Makefile | 10 +++ .../vector_strenght.tex | 66 +++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 projects/project_vector_strength/Makefile create mode 100755 projects/project_vector_strength/vector_strenght.tex diff --git a/projects/project_vector_strength/Makefile b/projects/project_vector_strength/Makefile new file mode 100644 index 0000000..dad25ce --- /dev/null +++ b/projects/project_vector_strength/Makefile @@ -0,0 +1,10 @@ +latex: + pdflatex *.tex > /dev/null + pdflatex *.tex > /dev/null + +clean: + rm -rf *.log *.aux *.zip *.out auto + rm -f `basename *.tex .tex`.pdf + +zip: latex + zip `basename *.tex .tex`.zip *.pdf *.dat *.mat diff --git a/projects/project_vector_strength/vector_strenght.tex b/projects/project_vector_strength/vector_strenght.tex new file mode 100755 index 0000000..f708af1 --- /dev/null +++ b/projects/project_vector_strength/vector_strenght.tex @@ -0,0 +1,66 @@ +\documentclass[addpoints,11pt]{exam} +\usepackage{url} +\usepackage{color} +\usepackage{hyperref} + +\pagestyle{headandfoot} +\runningheadrule +\firstpageheadrule +\firstpageheader{Scientific Computing}{Project Assignment}{11/05/2014 + -- 11/06/2014} +%\runningheader{Homework 01}{Page \thepage\ of \numpages}{23. October 2014} +\firstpagefooter{}{}{} +\runningfooter{}{}{} +\pointsinmargin +\bracketedpoints + +%\printanswers +%\shadedsolutions + + +\begin{document} +%%%%%%%%%%%%%%%%%%%%% Submission instructions %%%%%%%%%%%%%%%%%%%%%%%%% +\sffamily +% \begin{flushright} +% \gradetable[h][questions] +% \end{flushright} + +\begin{center} + \input{../disclaimer.tex} +\end{center} + +%%%%%%%%%%%%%% Questions %%%%%%%%%%%%%%%%%%%%%%%%% +\section*{Quantifying the coupling of action potentials to the EOD.} +P-unit electrorecptors are driven by the fish's self-generated field, +the EOD. In this project you have to quantify the strength of this +coulpling using the \textbf{vector strength}: +\begin{equation} + VS = \sqrt{\left(\frac{1}{n}\sum_{i=1}^{n}cos + \alpha_i\right)^2 + \left(\frac{1}{n}\sum_{i = 1}^{n} sin \alpha_i + \right)^2}, +\end{equation} +with $n$ the number of spikes and $\alpha_i$ the timing of the each +spike expressed as the phase relative to the EOD. The vector strength +varies between $0$ and $1$ for no phase locking to perfect phase +locking, respectively. + +\begin{questions} + \question In the accompanying datasets you find recrordings of the + ``baseline'' activity of P-unit electrorecptors of different weakly + electric fish of the species \textit{Apteronotus leptorhynchus}. + The files further contain respective recordings of the \textit{eod}, + i.e. the fish's field. + \begin{parts} + \part Plot an average of the single EOD cylces of each fish + together with an respective PSTH. + \part Implement a function that estimates the vector strength + between the \textit{eod} and the spikes. + \part Create a polar plot that shows the timing of the spikes + relatve to the EOD. + \part Analyze the baseline responses of each fish and extract + measures from them as you have done in week 3. Plot the results + appropriately. + \end{parts} +\end{questions} + +\end{document}