Operations on variables functions – Multichannel Systems NeuroExplorer User Manual

Page 229

Advertising
background image

5.5.8. Operations on Variables Functions


The following operations on variables functions are available in NexScript

Function

Description

Rename

Renames the specified variable.

Join

Creates the new event that contains both the timestamps of var1
and the timestamps of var2.

Sync

Creates the new event containing all the timestamps of var1 that
are in the intervals [var2+from, var2+to].

NotSync

Creates the new event containing all the timestamps of var1 that
are NOT in the intervals [var2+from, var2+to].

FirstAfter

Creates the new event containing the first timestamp of var1 in
each of the intervals [var2+from, var2+to].

FirstNAfter

Creates the new event containing the first N timestamps of var1
after each of the var2 timestamps.

LastBefore

Creates the new event containing the last timestamp of var1 in
each of the intervals [var2+from, var2+to].

IntervalFilter

Creates the new event containing all the timestamps of var that
are in the intervals of the intervalVar.

SelectTrials

Creates the new event containing the specified timestamps of
variable var. selectList can contain comma-separated indexes or
ranges of timestamps for example: 1,3-5,10.

SelectRandom

Creates the new event containing randomly selected timestamps
of variable var.

SelectEven

Creates the new event containing even (2nd, 4th, etc.)
timestamps of variable var.

SelectOdd

Creates the new event containing odd (1st, 3rd, etc.) timestamps
of variable var.

ISIFilter

Creates the new event containing timestamps of the variable var
that have preceding interspike intervals larger than min ISI.

FirstInInterval

Creates the new event. For each interval of intervalVar, the first
var timestamp in this interval is copied to the result.

LastInInterval

Creates the new event. For each interval of intervalVar, the last
var timestamp in this interval is copied to the result.

StartOfInterval

Creates the new event. Copies the start of each interval of
intervalVar the result.

EndOfInterval

Creates the new event. Copies the end of each interval of
intervalVar the result.

MakeIntervals

Creates new interval variable with intervals
[varTimestamp+shiftmin, varTimestamp+shiftMax].

MakeIntFromStart

Creates new interval variable. For each timestamp (tstart) of
intStartVar, it looks for the first timestamp (tend) of the intEndVar
after tstart. If tend is before the next timestamp of intStartVar, it
adds the interval [tstart+shift1, tend+shift2] to the result.

MakeIntFromEnd

Creates new interval variable. For each timestamp of the

Page 227

Advertising