Difference between revisions of "EcgDevice Class"

From Neurotech Software Development Kit
Jump to: navigation, search
Line 27: Line 27:
  
 
==Class definition==
 
==Class definition==
<code>'''public class''' EcgDevice '''extends''' [[VisualizableDevice Class|VisualizableDevice]]</code>
+
<code><span style="color:#0066FF;">'''public class'''</span> EcgDevice <span style="color:#0066FF;">'''extends'''</span> [[VisualizableDevice Class|VisualizableDevice]]</code>
  
 
==Fields Summary==
 
==Fields Summary==
Line 35: Line 35:
 
|'''Field and Description'''
 
|'''Field and Description'''
 
|- valign="top"
 
|- valign="top"
|[[SubscribersNotifier Class|SubscribersNotifier]]&lt;'''Boolean'''&gt;
+
|[[SubscribersNotifier Class|SubscribersNotifier]]&lt;java.lang.'''Boolean'''&gt;
 
|[[#electrodesAttachedStateChanged|electrodesAttachedStateChanged]]
 
|[[#electrodesAttachedStateChanged|electrodesAttachedStateChanged]]
 
Notifies when electrodes are attached or detached
 
Notifies when electrodes are attached or detached
 
To get electrodes state manually use getElectrodesState
 
To get electrodes state manually use getElectrodesState
 
|-  valign="top"
 
|-  valign="top"
|[[SubscribersNotifier Class|SubscribersNotifier]]&lt;'''Double'''&gt;
+
|[[SubscribersNotifier Class|SubscribersNotifier]]&lt;java.lang.'''Double'''&gt;
 
|[[#totalSignalDurationChanged|'''totalSignalDurationChanged''']]
 
|[[#totalSignalDurationChanged|'''totalSignalDurationChanged''']]
 
Notifies subscribers when signal duration is changed,
 
Notifies subscribers when signal duration is changed,
Line 66: Line 66:
  
 
==Methods Summary==
 
==Methods Summary==
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
+
{| class="wikitable"
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
+
|- style="background-color: #dee3e9;"
<tr>
+
|'''Modifier and Type'''
<th class="colFirst" scope="col">Modifier and Type</th>
+
|'''Method and Description'''
<th class="colLast" scope="col">Method and Description</th>
+
|- valign="top"
</tr>
+
|style="color:#0066FF;" |'''void'''
<tr id="i0" class="altColor">
+
|[[#close|close]]()
<td class="colFirst"><code>void</code></td>
+
|- valign="top"
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#close--">close</a></span>()</code>&nbsp;</td>
+
|style="color:#0066FF;" |'''void'''
</tr>
+
|[[#finalize|finalize]]()
<tr id="i1" class="rowColor">
+
|- valign="top"
<td class="colFirst"><code>void</code></td>
+
|java.lang.'''String'''
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#finalize--">finalize</a></span>()</code>&nbsp;</td>
+
|[[#getAddress|getAddress]]()
</tr>
+
Returns Bluetooth LE MAC address
<tr id="i2" class="altColor">
+
|- valign="top"
<td class="colFirst"><code>java.lang.String</code></td>
+
|style="color:#0066FF;" |'''int'''
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#getAddress--">getAddress</a></span>()</code>
+
|[[#getAverageHeartRateOnInterval|getAverageHeartRateOnInterval]]
<div class="block">Returns Bluetooth LE MAC address</div>
+
Returns average heart rate based on NN-interval values
</td>
+
from specified time interval
</tr>
+
|- valign="top"
<tr id="i3" class="rowColor">
+
|style="color:#0066FF;" |'''int'''
<td class="colFirst"><code>int</code></td>
+
|[[#getBatteryLevel|getBatteryLevel]]()
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#getAverageHeartRateOnInterval-double-double-">getAverageHeartRateOnInterval</a></span>(double&nbsp;startTime,
+
Returns battery charge level in percents
                            double&nbsp;endTime)</code>
+
|- valign="top"
<div class="block">Returns average heart rate based on NN-interval values
+
|style="color:#0066FF;" |'''int'''
from specified time interval</div>
+
|[[#getCurrentHeartRate|getCurrentHeartRate]]()
</td>
+
Calculates heart rate for recently received ECG samples
</tr>
+
Use this method to monitor heart rate during signal receiving is active
<tr id="i4" class="altColor">
+
It's not recommended to use this method to calculate heart rate
<td class="colFirst"><code>int</code></td>
+
while signal receiving is stopped, use [[#getAverageHeartRateOnInterval|getAverageHeartRateOnInterval]] instead
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#getBatteryLevel--">getBatteryLevel</a></span>()</code>
+
|- valign="top"
<div class="block">Returns battery state</div>
+
|style="color:#0066FF;" |'''double'''
</td>
+
|[[#getCurrentHeartRateVariability|getCurrentHeartRateVariability]]()
</tr>
+
Returns currently detected value of heart rate variability
<tr id="i5" class="rowColor">
+
Use this method to monitor HRV during signal receiving
<td class="colFirst"><code>int</code></td>
+
To get HRV for various intervals while signal receiving is stopped
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#getCurrentHeartRate--">getCurrentHeartRate</a></span>()</code>
+
use [[#getHeartRateVariabilityForInterval|getHeartRateVariabilityForInterval]]
<div class="block">Calculates heart rate for recently received ECG samples
+
|- valign="top"
Use this method to monitor heart rate during signal receiving is active
+
|style="color:#0066FF;" |'''double'''</code></td>
It's not recommended to use this method to calculate heart rate
+
|[[#getCurrentStressIndex|getCurrentStressIndex]]()
while signal receiving is stopped, use getAverageHeartRateOnInterval instead</div>
+
Returns value of stress index for real-time monitoring
</td>
+
Use this method to monitor stress index while signal receiving is active
</tr>
+
To get stress index for various intervals while signal receiving is stopped
<tr id="i6" class="altColor">
+
use [[#getStressIndexForInterval|getStressIndexForInterval]]
<td class="colFirst"><code>double</code></td>
+
|- valign="top"
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#getCurrentHeartRateVariability--">getCurrentHeartRateVariability</a></span>()</code>
+
|<span style="color:#0066FF;">'''double'''</span>[]
<div class="block">Returns currently detected value of heart rate variability
+
|[[#getEcgSignal|getEcgSignal]](<span style="color:#0066FF;">double</span> time, <span style="color:#0066FF;">double</span> duration)
Use this method to monitor HRV during signal receiving
+
Returns ECG signal stored in buffer for selected time interval
To get HRV for various intervals while signal receiving is stopped
+
If interval exceeds maximum or minimum buffer time, signal samples
use getHeartRateVariabilityForInterval</div>
+
for these intervals will be equal to zero
</td>
+
|- valign="top"
</tr>
+
|style="color:#0066FF;" |'''boolean'''
<tr id="i7" class="rowColor">
+
|[[#getElectrodesState|getElectrodesState]]()
<td class="colFirst"><code>double</code></td>
+
Returns flag indicating whether electrodes properly attached or not
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#getCurrentStressIndex--">getCurrentStressIndex</a></span>()</code>
+
|- valign="top"
<div class="block">Returns value of stress index for real-time monitoring
+
|style="color:#0066FF;" |'''double'''
Use this method to monitor stress index while signal receiving is active
+
|[[#getHeartRateVariabilityForInterval|getHeartRateVariabilityForInterval]](<span style="color:#0066FF;">double</span> startTime, <span style="color:#0066FF;">double</span> endTime)
To get stress index for various intervals while signal receiving is stopped
+
Returns average value of heart rate variability on interval
use getStressIndexForInterval</div>
+
|- valign="top"
</td>
+
|style="color:#0066FF;" |java.lang.'''String'''
</tr>
+
|[[#getName|getName]]()
<tr id="i8" class="altColor">
+
Returns name of BLE device
<td class="colFirst"><code>double[]</code></td>
+
|- valign="top"
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#getEcgSignal-double-double-">getEcgSignal</a></span>(double&nbsp;time,
+
|style="color:#0066FF;" |[[NeuroDevice Class|NeuroDevice]]
            double&nbsp;duration)</code>
+
|[[#getNeuroDevice|getNeuroDevice]]()
<div class="block">Returns ECG signal stored in buffer for selected time interval
+
Returns physical device object which this visual device represents
If interval exceeds maximum or minimum buffer time, signal samples
+
|- valign="top"
for these intervals will be equal to zero</div>
+
|style="color:#0066FF;" |[[RPeak Class|RPeak]][]
</td>
+
|[[#getRWavesOnInterval|getRWavesOnInterval]](<span style="color:#0066FF;">double</span> startTime,
</tr>
+
                  <span style="color:#0066FF;">double</span> endTime)
<tr id="i9" class="rowColor">
+
Detects R-waves in signal for specified time interval
<td class="colFirst"><code>boolean</code></td>
+
|- valign="top"
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#getElectrodesState--">getElectrodesState</a></span>()</code>
+
|style="color:#0066FF;" |'''double'''
<div class="block">Returns flag indicating whether electrodes properly attached or not</div>
+
|[[#getStressIndexForInterval|getStressIndexForInterval]](<span style="color:#0066FF;">double</span> startTime,
</td>
+
                        <span style="color:#0066FF;">double</span> endTime)
</tr>
 
<tr id="i10" class="altColor">
 
<td class="colFirst"><code>double</code></td>
 
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#getHeartRateVariabilityForInterval-double-double-">getHeartRateVariabilityForInterval</a></span>(double&nbsp;startTime,
 
                                  double&nbsp;endTime)</code>
 
<div class="block">Returns average value of heart rate variability on interval</div>
 
</td>
 
</tr>
 
<tr id="i11" class="rowColor">
 
<td class="colFirst"><code>java.lang.String</code></td>
 
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#getName--">getName</a></span>()</code>
 
<div class="block">Returns name of BLE device</div>
 
</td>
 
</tr>
 
<tr id="i12" class="altColor">
 
<td class="colFirst"><code><a href="../../../../ru/neurotech/neurodevices/NeuroDevice.html" title="class in ru.neurotech.neurodevices">NeuroDevice</a></code></td>
 
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#getNeuroDevice--">getNeuroDevice</a></span>()</code>
 
<div class="block">Returns physical device object which this visual device represents</div>
 
</td>
 
</tr>
 
<tr id="i13" class="rowColor">
 
<td class="colFirst"><code><a href="../../../../ru/neurotech/neurodevices/ecg/RPeak.html" title="class in ru.neurotech.neurodevices.ecg">RPeak</a>[]</code></td>
 
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#getRWavesOnInterval-double-double-">getRWavesOnInterval</a></span>(double&nbsp;startTime,
 
                  double&nbsp;endTime)</code>
 
<div class="block">Detects R-waves in signal for specified time interval</div>
 
</td>
 
</tr>
 
<tr id="i14" class="altColor">
 
<td class="colFirst"><code>double</code></td>
 
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#getStressIndexForInterval-double-double-">getStressIndexForInterval</a></span>(double&nbsp;startTime,
 
                        double&nbsp;endTime)</code>
 
 
<div class="block">Returns average value of stress index on interval</div>
 
<div class="block">Returns average value of stress index on interval</div>
</td>
+
|- valign="top"
</tr>
+
|style="color:#0066FF;" |'''double'''
<tr id="i15" class="rowColor">
+
|[[#getTotalSignalDuration|getTotalSignalDuration]]()
<td class="colFirst"><code>double</code></td>
+
Returns total signal duration in current test
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#getTotalSignalDuration--">getTotalSignalDuration</a></span>()</code>
+
|- valign="top"
<div class="block">Returns total signal duration in current test</div>
+
|style="color:#0066FF;" |'''void'''
</td>
+
|[[#reset|reset]]()
</tr>
+
Clears signal buffer, sets duration to zero
<tr id="i16" class="altColor">
+
and resets all parameters to default values
<td class="colFirst"><code>void</code></td>
+
|- valign="top"
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#reset--">reset</a></span>()</code>
+
|style="color:#0066FF;" |'''void'''
<div class="block">Clears signal buffer, sets duration to zero
+
|[[#startReceive|startReceive]]()
and resets all parameters to default values</div>
+
|- valign="top"
</td>
+
|style="color:#0066FF;" |'''void'''
</tr>
+
|[[#stopReceive|stopReceive]]()
<tr id="i17" class="rowColor">
+
 
<td class="colFirst"><code>void</code></td>
 
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#startReceive--">startReceive</a></span>()</code>&nbsp;</td>
 
</tr>
 
<tr id="i18" class="altColor">
 
<td class="colFirst"><code>void</code></td>
 
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#stopReceive--">stopReceive</a></span>()</code>&nbsp;</td>
 
</tr>
 
</table>
 
<ul class="blockList">
 
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
 
<!--  -->
 
</a>
 
 
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
 
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
 
<code>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
 
<code>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
+
 
</li>
 
</ul>
 
</li>
 
</ul>
 
</div>
 
  
 
==Field Detail==
 
==Field Detail==

Revision as of 07:38, 15 March 2017

ECG Device class implemets methods for using universal sensors as cardiography system.

Android

ru.neurotech.neurodevices.ecg

Class EcgDevice

Related Classes

ru.neurotech.neurodevices.ecg.EcgDeviceConnector

ru.neurotech.neurodevices.ecg.RPeak

Classes hierarchy

  • java.lang.Object

Class definition

public class EcgDevice extends VisualizableDevice

Fields Summary

Modifier and Type Field and Description
SubscribersNotifier<java.lang.Boolean> electrodesAttachedStateChanged

Notifies when electrodes are attached or detached To get electrodes state manually use getElectrodesState

SubscribersNotifier<java.lang.Double> totalSignalDurationChanged

Notifies subscribers when signal duration is changed, when new samples received or data been loaded from external storage, or buffers been reset

Fields inherited from class ru.neurotech.common.VisualizableDevice
deviceStateChanged

Constructor Summary

Constructor and Description
<a href="../../../../ru/neurotech/neurodevices/ecg/EcgDevice.html#EcgDevice-long-">EcgDevice</a>(long nativeObjPtr) 


Methods Summary

Modifier and Type Method and Description
void close()
void finalize()
java.lang.String getAddress()

Returns Bluetooth LE MAC address

int getAverageHeartRateOnInterval

Returns average heart rate based on NN-interval values from specified time interval

int getBatteryLevel()

Returns battery charge level in percents

int getCurrentHeartRate()

Calculates heart rate for recently received ECG samples Use this method to monitor heart rate during signal receiving is active It's not recommended to use this method to calculate heart rate while signal receiving is stopped, use getAverageHeartRateOnInterval instead

double getCurrentHeartRateVariability()

Returns currently detected value of heart rate variability Use this method to monitor HRV during signal receiving To get HRV for various intervals while signal receiving is stopped use getHeartRateVariabilityForInterval

double</code></td> getCurrentStressIndex()

Returns value of stress index for real-time monitoring Use this method to monitor stress index while signal receiving is active To get stress index for various intervals while signal receiving is stopped use getStressIndexForInterval

double[] getEcgSignal(double time, double duration)

Returns ECG signal stored in buffer for selected time interval If interval exceeds maximum or minimum buffer time, signal samples for these intervals will be equal to zero

boolean getElectrodesState()

Returns flag indicating whether electrodes properly attached or not

double getHeartRateVariabilityForInterval(double startTime, double endTime)

Returns average value of heart rate variability on interval

java.lang.String getName()

Returns name of BLE device

NeuroDevice getNeuroDevice()

Returns physical device object which this visual device represents

RPeak[] getRWavesOnInterval(double startTime,
                  double endTime)

Detects R-waves in signal for specified time interval

double getStressIndexForInterval(double startTime,
                        double endTime)
Returns average value of stress index on interval
double getTotalSignalDuration()

Returns total signal duration in current test

void reset()

Clears signal buffer, sets duration to zero and resets all parameters to default values

void startReceive()
void stopReceive()

Methods inherited from class java.lang.Object

clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</li>


Field Detail

<a name="totalSignalDurationChanged"> </a>

  • totalSignalDurationChanged

    public final <a href="../../../../ru/neurotech/common/SubscribersNotifier.html" title="class in ru.neurotech.common">SubscribersNotifier</a><java.lang.Double> totalSignalDurationChanged
    Notifies subscribers when signal duration is changed,
    when new samples received or data been loaded from external storage,
    
    or buffers been reset

<a name="electrodesAttachedStateChanged"> </a>

  • electrodesAttachedStateChanged

    public final <a href="../../../../ru/neurotech/common/SubscribersNotifier.html" title="class in ru.neurotech.common">SubscribersNotifier</a><java.lang.Boolean> electrodesAttachedStateChanged
    Notifies when electrodes are attached or detached To get electrodes state manually use getElectrodesState

</li> </ul>


Constructor Detail

EcgDevice

public EcgDevice(long nativeObjPtr)


Method Detail

finalize

public void finalize()
              throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

</li> </ul> <a name="close--"> </a>

  • close

    public void close()

<a name="getName--"> </a>

  • getName

    public java.lang.String getName()
    Description copied from class: <a href="../../../../ru/neurotech/common/VisualizableDevice.html#getName--">VisualizableDevice</a>
    Returns name of BLE device
    Specified by:
    <a href="../../../../ru/neurotech/common/VisualizableDevice.html#getName--">getName</a> in class [[VisualizableDevice Class|VisualizableDevice]
    Returns:
    BLE device name

<a name="getAddress--"> </a>

  • getAddress

    public java.lang.String getAddress()
    Description copied from class: <a href="../../../../ru/neurotech/common/VisualizableDevice.html#getAddress--">VisualizableDevice</a>
    Returns Bluetooth LE MAC address
    Specified by:
    <a href="../../../../ru/neurotech/common/VisualizableDevice.html#getAddress--">getAddress</a> in class [[VisualizableDevice Class|VisualizableDevice]
    Returns:
    device unique address

<a name="getBatteryLevel--"> </a>

  • getBatteryLevel

    public int getBatteryLevel()
    Description copied from class: <a href="../../../../ru/neurotech/common/VisualizableDevice.html#getBatteryLevel--">VisualizableDevice</a>
    Returns battery state
    Specified by:
    <a href="../../../../ru/neurotech/common/VisualizableDevice.html#getBatteryLevel--">getBatteryLevel</a> in class <a href="../../../../ru/neurotech/common/VisualizableDevice.html" title="class in ru.neurotech.common">VisualizableDevice</a>
    Returns:
    battery charge level in percents

<a name="getNeuroDevice--"> </a>

  • getNeuroDevice

    public <a href="../../../../ru/neurotech/neurodevices/NeuroDevice.html" title="class in ru.neurotech.neurodevices">NeuroDevice</a> getNeuroDevice()
    Description copied from class: <a href="../../../../ru/neurotech/common/VisualizableDevice.html#getNeuroDevice--">VisualizableDevice</a>
    Returns physical device object which this visual device represents
    Specified by:
    <a href="../../../../ru/neurotech/common/VisualizableDevice.html#getNeuroDevice--">getNeuroDevice</a> in class [[VisualizableDevice Class|VisualizableDevice]
    Returns:
    NeuroDevice of current visual device

<a name="startReceive--"> </a>

  • startReceive

    public void startReceive()

<a name="stopReceive--"> </a>

  • stopReceive

    public void stopReceive()

<a name="reset--"> </a>

  • reset

    public void reset()
    Clears signal buffer, sets duration to zero and resets all parameters to default values

<a name="getTotalSignalDuration--"> </a>

  • getTotalSignalDuration

    public double getTotalSignalDuration()
    Returns total signal duration in current test
    Returns:
    signal duration in seconds

<a name="getEcgSignal-double-double-"> </a>

  • getEcgSignal

    public double[] getEcgSignal(double time,
                                 double duration)
    Returns ECG signal stored in buffer for selected time interval
    If interval exceeds maximum or minimum buffer time, signal samples
    
    for these intervals will be equal to zero
    Parameters:
    time - Start time of interval
    duration - Duration of interval
    Returns:
    Signal samples array

<a name="getRWavesOnInterval-double-double-"> </a>

  • getRWavesOnInterval

    public <a href="../../../../ru/neurotech/neurodevices/ecg/RPeak.html" title="class in ru.neurotech.neurodevices.ecg">RPeak</a>[] getRWavesOnInterval(double startTime,
                                       double endTime)
    Detects R-waves in signal for specified time interval
    Parameters:
    startTime - Start time of interval
    endTime - End time of interval
    Returns:
    Array of RPeaks

<a name="getCurrentHeartRate--"> </a>

  • getCurrentHeartRate

    public int getCurrentHeartRate()
    Calculates heart rate for recently received ECG samples
    Use this method to monitor heart rate during signal receiving is active
    It's not recommended to use this method to calculate heart rate
    
    while signal receiving is stopped, use getAverageHeartRateOnInterval instead
    Returns:
    Heart rate in beats per minute

<a name="getAverageHeartRateOnInterval-double-double-"> </a>

  • getAverageHeartRateOnInterval

    public int getAverageHeartRateOnInterval(double startTime,
                                             double endTime)
    Returns average heart rate based on NN-interval values from specified time interval
    Parameters:
    startTime - Start time for heart rate calculation
    endTime - End time for heart rate calculation
    Returns:
    Heart rate in beats per minute

<a name="getCurrentHeartRateVariability--"> </a>

  • getCurrentHeartRateVariability

    public double getCurrentHeartRateVariability()
    Returns currently detected value of heart rate variability
    Use this method to monitor HRV during signal receiving
    To get HRV for various intervals while signal receiving is stopped
    
    use getHeartRateVariabilityForInterval
    Returns:
    HRV value

<a name="getHeartRateVariabilityForInterval-double-double-"> </a>

  • getHeartRateVariabilityForInterval

    public double getHeartRateVariabilityForInterval(double startTime,
                                                     double endTime)
    Returns average value of heart rate variability on interval
    Parameters:
    startTime - Start time of calculation interval
    endTime - End time of calculation interval
    Returns:
    HRV value

<a name="getCurrentStressIndex--"> </a>

  • getCurrentStressIndex

    public double getCurrentStressIndex()
    Returns value of stress index for real-time monitoring
    Use this method to monitor stress index while signal receiving is active
    To get stress index for various intervals while signal receiving is stopped
    
    use getStressIndexForInterval
    Returns:
    Stress index of current signal

<a name="getStressIndexForInterval-double-double-"> </a>

  • getStressIndexForInterval

    public double getStressIndexForInterval(double startTime,
                                            double endTime)
    Returns average value of stress index on interval
    Parameters:
    startTime - Start time of calculation interval
    endTime - End time of calculation interval
    Returns:
    Stress index value

<a name="getElectrodesState--"> </a>

  • getElectrodesState

    public boolean getElectrodesState()
    Returns flag indicating whether electrodes properly attached or not
    Returns:
    Is electrodes attached