BrainBit foe developers Subscribe for updates Visit website
Home
SDK
Windows
iOS
Android
DotNet
Web
Device

NTSpectrumPowerDoubleChannel

Spectrum power channel class. It inherits from the base class of channels NTBaseChannel. The spectrum power is calculated based on the arrays of the NTSpectrumChannel spectrum channels specified in the initializer

Description

NTSpectrumPowerDoubleChannel

Constructor. Creating a signal spectrum data channel.

Creates a power spectrum data channel.

Parameters:

channels

Description: spectrum channel array

Data type: [NTBaseChannel]

lowFreq

Description: lower limit of the frequency of spectrum power calculation in Hz

Data type: float

highFreq

 Description: upper limit of the spectrum power calculation frequency in Hz

Data type: float

duration

Description: spectrum calculation window size in seconds.

Data type: double

Return value:

Description: Signal spectrum data channel

Data type: NTSpectrumPowerDoubleChannel.

readData

Function. Channel data request.

A method that returns the requested amount of data.Parameters:

offset

Description: Offset from the start of the data

Data type: UInt

length

Description: The required number of signal samples.

Data type: UInt

Return value:

Description: array of requested reports

Data type: [NSNumber].

setFrequencyBand

Function. Setting the frequency limits for calculating the spectrum power.

Method of setting the upper and lower limits of the frequency for calculating the spectrum power in Hz.

Parameters:

low

Description: lower limit of the frequency of spectrum power calculation in Hz

Data type: Float

high

Description: upper limit of the frequency of spectrum power calculation in Hz

Data type: Float

setWindowDuration

Function. Setting the window size.

Method for setting the size of the spectrum calculation window in seconds.

Parameters:

duration

Description: spectrum calculation window in seconds

Data type: Double

setOverlappingCoefficient

Function. Setting the window overlap ratio.

Method of setting the coefficient of overlap of the calculation window. Values ​​range from 0 to 1, where 0 is no overlap and 1 is maximum overlap

Parameters:

overlap

Description: overlap ratio

Data type: Double