Output statistics

Moderator: wwlytton

Post Reply
stu2010
Posts: 5
Joined: Mon Jun 30, 2014 9:28 am

Output statistics

Post by stu2010 »

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
ted
Site Admin
Posts: 6299
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Output statistics

Post by ted »

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"?
stu2010
Posts: 5
Joined: Mon Jun 30, 2014 9:28 am

Re: Output statistics

Post by stu2010 »

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

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
To answer previous question
Initial burst time: Time between ending of stimulus and first action potential

Thanks
ted
Site Admin
Posts: 6299
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Output statistics

Post by ted »

stu2010 wrote:I am a bit confused on how to implement NetCon
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/docs
how can I actually view the contents of the variable?
What contents of what variable?
should there be a vector for times and voltages?
The Programmer's Reference entry on NetCon starts with

Code: Select all

NetCon.record()
    Syntax:
        netcon.record(Vector)
 . . .
    Description:
        Records the event times at the source the netcon connects to.
Try it and see what happens. Then decide if you want to record voltage (what voltage would be relevant, and why?).
whats the difference between using vector class vs NetCon vs cvode records?
What do the relevant Programmer's Reference entries tell you?
Here's what I have so far, not sure how to proceed, or if I am even going in the right direction.
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):
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
To answer previous question
Initial burst time: Time between ending of stimulus and first action potential
That's just the time of the first spike. You know the answer to this one.
Post Reply