NewPopVector

Creates a new population vector.

Syntax

NewPopVector(doc, type)

Parameters

Parameter

Type

Description

doc

documentReference

Reference to the document

type

number

If type = 0, all weights of the new vector are equal to zero. If type = 1, NeuroExplorer creates a vector representing the average of all neurons in the file. If type = 2, NeuroExplorer creates a vector representing the sum of all neurons in the file. If type = 3, NeuroExplorer creates a vector representing the average of all selected neurons and events in the file. If type = 4, NeuroExplorer creates a vector representing the sum of all selected neurons and events in the file.

Return

Returns a reference to the new vector.

Examples

Python

import nex
doc = nex.GetActiveDocument()
doc["neuronAverage"] = nex.NewPopVector(doc, 1)

NexScript

doc = GetActiveDocument()
doc["neuronAverage"] = NewPopVector(doc, 1)