StressData

data class StressData : SampleData

Sample data with information of stress during measurement period.

See also

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Accumulated stress duration in minutes.

Link copied to clipboard

stress module was adjusted to user during measurement period

Link copied to clipboard

is user experiences strong emotions during measurement period

Link copied to clipboard

Average stress level during measurement period.

Link copied to clipboard
open override val timestampEnd: Long

End of the sample in UNIX-timestamp.

Link copied to clipboard
open override val timestampStart: Long

Beginning of the sample in UNIX-timestamp.

Functions

Link copied to clipboard
fun getAccumulatedStress(units: TimeUnit = TimeUnit.MINUTES): Long

Returns accumulated stress duration in specified units. Default units: TimeUnit.MINUTES.

Link copied to clipboard

Convert stressLevel numerical value into StressLevel

Link copied to clipboard

Convert stressLevel numerical value into StressState

Extensions

Link copied to clipboard
fun SampleData.getSampleDuration(units: TimeUnit = TimeUnit.SECONDS): Long

Returns sample duration in specified units. Default units: TimeUnit.SECONDS.