IntervalFilter
Creates the new event containing all the timestamps of the specified event or neuron variable that are in the intervals of the specified interval variable.
Syntax
IntervalFilter(var, intervalVar)
Parameters
Parameter |
Type |
Description |
---|---|---|
var |
variableReference |
Reference to the variable. |
intervalVar |
variableReference |
Reference to the interval variable |
Return
Reference to the new variable.
Note
Creates the new event containing all the timestamps of var that are in the intervals of the intervalVar
Examples
Python
import nex
doc = nex.GetActiveDocument()
doc["filtered"] = nex.IntervalFilter(doc["Neuron07a"], doc["CorrectTrials"])
NexScript
doc = GetActiveDocument()
doc["filtered"] = IntervalFilter(doc["Neuron07a"], doc["CorrectTrials"])