commonMain.dk.cachet.carp.common.application.data.EDA.kt Maven / Gradle / Ivy
Go to download
Helper classes and base types relied upon by all subsystems. This library does not contain any domain logic.
The newest version!
package dk.cachet.carp.common.application.data
import kotlinx.serialization.*
import kotlin.js.JsExport
/**
* Holds single-channel electrodermal activity (EDA) data, represented as skin conductance.
* Among others, also known as galvanic skin response (GSR) and skin conductance response/level.
*/
@Serializable
@SerialName( CarpDataTypes.EDA_TYPE_NAME )
@JsExport
data class EDA( val microSiemens: Double, override val sensorSpecificData: Data? = null ) : SensorData
{
init
{
require( microSiemens >= 0 ) { "EDA conductance in microsiemens needs to be a positive value." }
}
}