BrainBit for developers Subscribe for updates Visit website

NTSpectrumChannel

Class of the data channel of the signal spectrum. It inherits from the base channel class NTBaseChannel.

Description

NTSpectrumChannel

Constructor. Creating a signal spectrum data channel.

Creates a signal spectrum data channel.

Parameters:

channel

Description: data channel

Data type: NTBaseChannel

windowType

Description: type of window function for spectrum calculation

Data type: ChannelInfo

Return value:

Description: Signal spectrum data channel

Data type: NTSpectrumChannel.

readData

Function. Channel data request.

Method that returns the requested amount of data.

Parameters:

offset

Description: Offset from the start of the data

Data type: UInt

length

Description: Required number of signal samples.

Data type: UInt

Return value:

Description: array of requested reports

Data type: [NSNumber].

hzPerSpectrumSample

Field. Spectrum calculation step

Data type. Double

spectrumlength

Field. Window size for spectrum calculation

Data type. Int