Skip to content

Commit

Permalink
Doc: Update documentation for epochs
Browse files Browse the repository at this point in the history
- also add a annotated graph for epochs
  • Loading branch information
MichaelHuth committed Feb 20, 2024
1 parent 4d3226d commit d271be9
Show file tree
Hide file tree
Showing 2 changed files with 25,256 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Packages/doc/epoch_information.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ this can be read with:
Format
------

The times are in seconds where 0 is the beginning of the signal input. The reference signal is the DA input wave.
The times are in seconds where 0 is the beginning of the signal input. The reference signal is the DA or TTL output wave.
The epochChannel wave can contain several entries with different levels covering the same time range.
Epochs with a level of zero name the main components of the input signal.
Typical epochs with zero level are 'Inserted Test Pulse' and 'StimSet'.
Expand Down Expand Up @@ -109,16 +109,13 @@ Time specialities
-----------------

The epoch start and end times are stored in seconds with sufficiently large
precision as text.
precision as text. The start time of an epoch refers to the first sample point of the feature that
contains the signal. For a pulse epoch following a base line epoch the sample point at the start time
of the pulse epoch is the first point with an amplitude > 0. Thus, the epoch ranges are sample point
exact. The sample point can be calculated by ``round(epochTime / samplingInterval)``.

It can not be assumed though that the epoch start and end time points coincide
with the sampling pattern of the DA data. As an example an epoch going from
1s to 2s might be referring to DA data which has sampling points
acquired at 0.9995s and 1.0015s and not exactly at 1s.

It is the responsibility of the user evaluating the epochs information to
select a scientific consistent strategy dealing with that. A good first approach might
be to use the closest sampling point.
An exception from that are oodDAQ region epochs (``ODx``) that store times that are not sample point exact.
Details are described in the following section.

optimized overlap distributed data acquisistion (oodDAQ) regions
----------------------------------------------------------------
Expand Down Expand Up @@ -216,6 +213,11 @@ level and includes the trailing baseline (that precedes the next pulse) unless i
An epoch named 'Baseline' is inserted if the first pulse in the pulse train has a leading baseline. This is applies for
flipped Stimsets containing Stimset-Epochs with type pulse train.

.. _Figure Epoch Visualization2:

.. figure:: svg/epoch-visualization2.svg
:align: center

.. _user_epochs_doc:

User epochs
Expand Down
Loading

0 comments on commit d271be9

Please sign in to comment.