LofBadChannelParams
Namespace: RTPROCESSINGLIB · Library: DSP Library
#include <dsp/bad_channels_lof.h>
struct UTILSLIB::LofBadChannelParams
Parameters for LOF bad channel detection.
src/examples/ex_dsp_artifacts/main.cpp
LofBadChannelParams lofParams;
lofParams.iNNeighbors = 4;
lofParams.bEegOnly = true;
const QStringList lofBad = findBadChannelsLof(data, info, lofParams); // features: std, kurtosis, max |x|
MatrixXd features(6, 2); // the generic LOF score on a 2-D point cloud: one far point
features << 0.0, 0.0, 0.1, 0.0, 0.0, 0.1, 0.1, 0.1, 0.05, 0.05, 3.0, 3.0;
const VectorXd lofScores = computeLofScores(features, 3);
Example
- Full source:
src/examples/ex_dsp_artifacts/main.cpp - Build target:
ex_dsp_artifacts(runs under CTest)
Used in examples
ex_dsp_artifacts
Artifact detection and repair with the dsp library on a recording with planted defects.
src/examples/ex_dsp_artifacts/main.cpp, line 157
LofBadChannelParams lofParams;
lofParams.iNNeighbors = 4;
lofParams.bEegOnly = true;
const QStringList lofBad = findBadChannelsLof(data, info, lofParams); // features: std, kurtosis, max |x|
Authors of this file
- Christoph Dinh <christoph.dinh@mne-cpp.org>