[pointprocesses] updated exercise
This commit is contained in:
parent
1cc4407ede
commit
fbc4a3515a
@ -17,7 +17,7 @@ function spikes = hompoissonspikes(rate, trials, tmax)
|
|||||||
nintervals = 2*round(tmax/mu);
|
nintervals = 2*round(tmax/mu);
|
||||||
for k=1:trials
|
for k=1:trials
|
||||||
% exponential random numbers:
|
% exponential random numbers:
|
||||||
intervals = random('Exponential', nintervals, 1);
|
intervals = random('Exponential', mu, nintervals, 1);
|
||||||
times = cumsum(intervals);
|
times = cumsum(intervals);
|
||||||
spikes{k} = times(times<=tmax);
|
spikes{k} = times(times<=tmax);
|
||||||
end
|
end
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
\else
|
\else
|
||||||
\newcommand{\stitle}{}
|
\newcommand{\stitle}{}
|
||||||
\fi
|
\fi
|
||||||
\header{{\bfseries\large Exercise 8\stitle}}{{\bfseries\large Point processes}}{{\bfseries\large December 3th, 2018}}
|
\header{{\bfseries\large Exercise 12\stitle}}{{\bfseries\large Point processes}}{{\bfseries\large January 14th, 2020}}
|
||||||
\firstpagefooter{Prof. Dr. Jan Benda}{Phone: 29 74573}{Email:
|
\firstpagefooter{Prof. Dr. Jan Benda}{Phone: 29 74573}{Email:
|
||||||
jan.benda@uni-tuebingen.de}
|
jan.benda@uni-tuebingen.de}
|
||||||
\runningfooter{}{\thepage}{}
|
\runningfooter{}{\thepage}{}
|
||||||
@ -137,7 +137,7 @@ jan.benda@uni-tuebingen.de}
|
|||||||
Use this function to plot the first second of the
|
Use this function to plot the first second of the
|
||||||
spike rasters of the three neurons.
|
spike rasters of the three neurons.
|
||||||
\begin{solution}
|
\begin{solution}
|
||||||
\lstinputlisting{../code/spikeraster.m}
|
\lstinputlisting{../code/rasterplot.m}
|
||||||
\lstinputlisting{../code/plotspikeraster.m}
|
\lstinputlisting{../code/plotspikeraster.m}
|
||||||
\mbox{}\\[-3ex]
|
\mbox{}\\[-3ex]
|
||||||
\colorbox{white}{\includegraphics[width=1\textwidth]{spikeraster}}
|
\colorbox{white}{\includegraphics[width=1\textwidth]{spikeraster}}
|
||||||
|
Reference in New Issue
Block a user