MNE-CPP  0.1.9
A Framework for Electrophysiology
Functions
averaging.h File Reference

Averaging declarations. More...

#include "rtprocessing_global.h"
#include <fiff/fiff_evoked.h>
#include <QObject>
#include <Eigen/Core>
Include dependency graph for averaging.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

RTPROCESINGSHARED_EXPORT FIFFLIB::FiffEvoked RTPROCESSINGLIB::computeAverage (const FIFFLIB::FiffRawData &raw, const Eigen::MatrixXi &matEvents, float fTMinS, float fTMaxS, qint32 eventType, bool bApplyBaseline, float fTBaselineFromS, float fTBaselineToS, const QMap< QString, double > &mapReject, const QStringList &lExcludeChs=QStringList(), const Eigen::RowVectorXi &vecPicks=Eigen::RowVectorXi())
 
RTPROCESINGSHARED_EXPORT FIFFLIB::FiffEvoked RTPROCESSINGLIB::computeFilteredAverage (const FIFFLIB::FiffRawData &raw, const Eigen::MatrixXi &matEvents, float fTMinS, float fTMaxS, qint32 eventType, bool bApplyBaseline, float fTBaselineFromS, float fTBaselineToS, const QMap< QString, double > &mapReject, const FilterKernel &filterKernel, const QStringList &lExcludeChs=QStringList(), const Eigen::RowVectorXi &vecPicks=Eigen::RowVectorXi())
 

Detailed Description

Averaging declarations.

Author
Lorenz Esch lesch.nosp@m.@mgh.nosp@m..harv.nosp@m.ard..nosp@m.edu
Since
0.1.3
Date
June, 2020

LICENSE

Copyright (C) 2020, Lorenz Esch. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file averaging.h.

Function Documentation

◆ computeAverage()

RTPROCESINGSHARED_EXPORT FIFFLIB::FiffEvoked RTPROCESSINGLIB::computeAverage ( const FIFFLIB::FiffRawData raw,
const Eigen::MatrixXi &  matEvents,
float  fTMinS,
float  fTMaxS,
qint32  eventType,
bool  bApplyBaseline,
float  fTBaselineFromS,
float  fTBaselineToS,
const QMap< QString, double > &  mapReject,
const QStringList &  lExcludeChs = QStringList(),
const Eigen::RowVectorXi &  vecPicks = Eigen::RowVectorXi() 
)

Computes the average for given fiff raw data.

Parameters
[in]rawThe raw data.
[in]matEventsThe events provided in samples and event kinds.
[in]fTMinSThe start time relative to the event in seconds.
[in]fTMaxSThe end time relative to the event in seconds.
[in]eventTypeThe event type.
[in]bApplyBaselineWhether to use baseline correction (mode=mean).
[in]fTBaselineFromSThe start baseline correction time relative to the event in seconds.
[in]fTBaselineToSThe end baseline correction time relative to the event in seconds.
[in]mapRejectThe thresholds per channel type to reject epochs.
[in]lExcludeChsList of channel names to exclude.
[in]vecPicksWhich channels to pick.

◆ computeFilteredAverage()

RTPROCESINGSHARED_EXPORT FIFFLIB::FiffEvoked RTPROCESSINGLIB::computeFilteredAverage ( const FIFFLIB::FiffRawData raw,
const Eigen::MatrixXi &  matEvents,
float  fTMinS,
float  fTMaxS,
qint32  eventType,
bool  bApplyBaseline,
float  fTBaselineFromS,
float  fTBaselineToS,
const QMap< QString, double > &  mapReject,
const FilterKernel filterKernel,
const QStringList &  lExcludeChs = QStringList(),
const Eigen::RowVectorXi &  vecPicks = Eigen::RowVectorXi() 
)

Computes the filtered average for given fiff raw data.

Parameters
[in]rawThe raw data.
[in]matEventsThe events provided in samples and event kinds.
[in]fTMinSThe start time relative to the event in seconds.
[in]fTMaxSThe end time relative to the event in seconds.
[in]eventTypeThe event type.
[in]bApplyBaselineWhether to use baseline correction (mode=mean).
[in]fTBaselineFromSThe start baseline correction time relative to the event in seconds.
[in]fTBaselineToSThe end baseline correction time relative to the event in seconds.
[in]filterKernelThe filter kernel to use when reading the fiff raw data.
[in]mapRejectThe thresholds per channel type to reject epochs.
[in]lExcludeChsList of channel names to exclude.
[in]vecPicksWhich channels to pick.