BrainBit for developers Subscribe for updates Visit website

NTMeditationAnalyzerChannel

Meditation state data channel class. The analysis of the state is carried out on the basis of the channel of EEG indices - NTEegIndexChannel. Meditation data includes two indicators: level, level progress. The level can take values ​​from 0 to 3 inclusive. Level progress takes values ​​from 0 to 1.

Description

NTMeditationAnalyzerChannel

Constructor. Channel creation.

Creates a meditation state data feed.

Parameters:

indexChannel

Description: EEG signal index channel

Data type: NTEegIndexChannel

Return value:

Description: meditation state data channel

Data type: NTMeditationAnalyzerChannel

subscribeLevelChanged

Function. Changing the level of meditation.

Subscribes to the meditation state channel level change event.

Parameters:

subscribe

Description: method of handling the meditation level change event

Data type: void(NSInteger)

subscribeLevelProgressChanged

method of handling the meditation level change event.

Subscribes to the event of changing the progress of the current level of the meditation state channel.

Parameters:

subscribe

Description: method for handling the event of changing the progress of the current meditation levelData type: void(double)

level

Field. Meditation level.

Integer value from 0 to 3 inclusive.

Data type. Int

levelProgress

Field. Progress of the current meditation level.

Floating point number from 0 to 1.

Data type. Double