Skip to main content

DerivationRule

Namespace: UTILSLIB  ·  Library: Utilities Library

#include <utils/channel_derivation.h>

struct UTILSLIB::DerivationRule

A single derivation rule mapping input channels (with weights) to one output channel.

src/examples/ex_dsp_preprocessing/main.cpp
const QStringList names = {"LH1", "LH2", "LH3", "RA1"};
const QVector<DerivationRule> bipolar = ChannelDerivation::buildBipolar(names); // LH1-LH2, LH2-LH3
const QVector<DerivationRule> average = ChannelDerivation::buildCommonAverage(names);
const auto [bipolarData, bipolarNames] = ChannelDerivation::apply(raw, names, bipolar);
const auto [averageData, averageNames] = ChannelDerivation::apply(raw, names, average);

Example​

Authors of this file​