BrainBit for developers Subscribe for updates Visit website

NTEmotionsAnalyzer

The class of the data channel intended for displaying the emotional state. The analysis of the state is carried out based on the values ​​of the alpha and beta rhythms. Emotional data includes indicators of relaxation, concentration, and meditation. Data needs to be calibrated before use.

Description

NTEmotionsAnalyzer

Constructor. Creating an Emotion Analysis Channel.

Creates an emotional state data feed.

Parameters:

device

Description: currently connected device

Data type: NTDevice

Return value:

Description: Emotion Analysis Channel

Data type: NTEmotionsAnalyzer.

calibrate

Function. Data Calibration.

ФункThe activation starts the process of calibrating the channel data.

Parameters:

error

Description: Function execution error

Data type: NSErrorPointer

reset

Function. Resetting values.

The function resets the status of calibration and base values ​​of rhythms to the initial.

Parameters:

error

Description: Function execution error

Data type: NSErrorPointer

setWeights

Function. Setting the rhythm weight.

Sets the influence of each of the rhythms (alpha, theta, beta, delta) on the calculation of relaxation and concentration values. It can take values ​​from 0 to 1.

Parameters:

weights

Description: rhythm weights

Data type: NTIndexValues

Return value:

Description: An indication of an error. More details

sdk_error

Data type: int.

getWeights

Function. Getting weight of rhythms.

Gets the current weight values ​​for each of the rhythms.

Return value:

Description: the value of the index weights

Data type: NTIndexValues?.

setPrioritySide

Function. Setting the priority side of the overlay area.

Sets the data from the left or right overlay areas to be calculated.

Parameters:

side

Description: priority side of overlap areas

Data type: NTPrioritySide

error

Description: priority side of overlap areas

Data type: NSError

getPrioritySide

Function. Getting the priority side of the overlay area.

Returns the current priority side of areas overlays.

Return value:

Description: priority side of overlap areas

Data type: NTPrioritySide.

Method to get the priority side of the overlay area.

getState

Function. Getting the status of the channel of emotions.

Function. Getting the status of the channel of emotions.

Return value:

Description:  emotion analyzer state

Data type: NTEmotionsAnalyzerState.

getCalibrationStatus

Function. Channel sampling rate query.

Transmits the status of the calibration process.

Return value: 

Description: calibration status

Data type: NTCalibrationStatus.