v2.0.0
Loading...
Searching...
No Matches
fiff_epochs.h File Reference

Static epoching utilities: cut a FiffRawData stream into fixed-length, event-aligned epochs. More...

#include "fiff_global.h"
#include "fiff_evoked.h"
#include <Eigen/Core>
#include <QList>
#include <QPair>
Include dependency graph for fiff_epochs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FiffEpochData
class  FiffEpochs
 Free / static helpers that turn a FiffRawData plus an event list into fixed-length epochs. More...

Detailed Description

Static epoching utilities: cut a FiffRawData stream into fixed-length, event-aligned epochs.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.2.1
Date
May 2026

Implements the equivalent of mne.Epochs construction from a continuous recording: given a FiffRawData, an event list (or a fixed step), and a time window (tmin, tmax), it returns a 3D (nepoch × nchan × nsamples) stack along with the associated FiffInfo. Bad-segment rejection (via FiffAnnotation ``BAD_*'' entries) and peak-to-peak / flatness rejection (via RejectionParams in fiff_evoked_set.h) are applied as the epochs are cut. */


INCLUDES


EIGEN INCLUDES


QT INCLUDES


DEFINE NAMESPACE FIFFLIB

namespace FIFFLIB {


/**

Fixed-length epoching result: the (nepoch × nchan × nsamples) data stack plus the matching FiffInfo.

Returned by the static epoch-cutting helpers in FiffEpochsUtils. Mirrors the mne.EpochsArray construction return value in MNE-Python.

Definition in file fiff_epochs.h.