Hello
I am trying to output a few statistics that correspond to the voltage response outputted from the soma.
I would like to
-count spike
-frequency of spikes
-AP peak/depth
-initial burst time
Wondering if this is possible
Thanks
Output statistics
Moderator: wwlytton
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Output statistics
All are doable. You probably want to know how.
-count spike
-frequency of spikes
Use the NetCon class's record() method to capture the spike times to a Vector.
-AP peak/depth
Record the time course of the spike to a Vector, then use the Vector class's max and min methods.
-initial burst time
To give you a hint I will need more information. What is your operational definition of "burst"?
-count spike
-frequency of spikes
Use the NetCon class's record() method to capture the spike times to a Vector.
-AP peak/depth
Record the time course of the spike to a Vector, then use the Vector class's max and min methods.
-initial burst time
To give you a hint I will need more information. What is your operational definition of "burst"?
Re: Output statistics
Hi
I am a bit confused on how to implement NetCon, how can I actually view the contents of the variable? , should there be a vector for times and voltages?, whats the difference between using vector class vs NetCon vs cvode records?
Here's what I have so far, not sure how to proceed, or if I am even going in the right direction
To answer previous question
Initial burst time: Time between ending of stimulus and first action potential
Thanks
I am a bit confused on how to implement NetCon, how can I actually view the contents of the variable? , should there be a vector for times and voltages?, whats the difference between using vector class vs NetCon vs cvode records?
Here's what I have so far, not sure how to proceed, or if I am even going in the right direction
Code: Select all
objref netcon, nil,d
d= new Vector()
netcon=new NetCon(&v(0.5), nil)
netcon.record(d)
netcon.get_recordvec()
print d.printf()
objref netcon
Initial burst time: Time between ending of stimulus and first action potential
Thanks
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Output statistics
Suggest you (re-)read the Programmer's Reference documentation of the NetCon class and work through the Network Builder tutorials at http://www.neuron.yale.edu/neuron/docsstu2010 wrote:I am a bit confused on how to implement NetCon
What contents of what variable?how can I actually view the contents of the variable?
The Programmer's Reference entry on NetCon starts withshould there be a vector for times and voltages?
Code: Select all
NetCon.record()
Syntax:
netcon.record(Vector)
. . .
Description:
Records the event times at the source the netcon connects to.
What do the relevant Programmer's Reference entries tell you?whats the difference between using vector class vs NetCon vs cvode records?
Stop writing code. Read documentation and code that works. In particular, you might find it useful to read parts of this article (ignore the stuff about parallelization; you just need to see simple, clean code that works):Here's what I have so far, not sure how to proceed, or if I am even going in the right direction.
Hines, M.L. and Carnevale, N.T.
Translating network models to parallel hardware in NEURON.
J. Neurosci. Methods 169:425-455, 2008.
(available from a link at http://www.neuron.yale.edu/neuron/nrnpubs)
Then, when you think you're ready, proceed by
Code: Select all
REPEAT
1. write just a few lines of code that you think you understand
2. run a test to verify that (a) you do understand what the code does
and (b) it does what you want it to do
If either (a) or (b) is false, revise and test again
UNTIL your program is complete and works properly
That's just the time of the first spike. You know the answer to this one.To answer previous question
Initial burst time: Time between ending of stimulus and first action potential