v2.0.0
Loading...
Searching...
No Matches
bad_channels_lof.h
Go to the documentation of this file.
1//=============================================================================================================
26
27#ifndef BAD_CHANNELS_LOF_H
28#define BAD_CHANNELS_LOF_H
29
30//=============================================================================================================
31// INCLUDES
32//=============================================================================================================
33
34#include "dsp_global.h"
35
36//=============================================================================================================
37// EIGEN INCLUDES
38//=============================================================================================================
39
40#include <Eigen/Core>
41
42//=============================================================================================================
43// QT INCLUDES
44//=============================================================================================================
45
46#include <QStringList>
47
48//=============================================================================================================
49// FORWARD DECLARATIONS
50//=============================================================================================================
51
52namespace FIFFLIB {
53 class FiffInfo;
54}
55
56//=============================================================================================================
57// DEFINE NAMESPACE UTILSLIB
58//=============================================================================================================
59
60namespace UTILSLIB {
61
62//=============================================================================================================
67{
68 int iNNeighbors = 20;
69 double dThreshold = 2.0;
70 bool bMegOnly = false;
71 bool bEegOnly = false;
72};
73
74//=============================================================================================================
89DSPSHARED_EXPORT QStringList findBadChannelsLof(const Eigen::MatrixXd& data,
90 const FIFFLIB::FiffInfo& info,
92
93//=============================================================================================================
104DSPSHARED_EXPORT Eigen::VectorXd computeLofScores(const Eigen::MatrixXd& features,
105 int k);
106
107} // namespace UTILSLIB
108
109#endif // BAD_CHANNELS_LOF_H
Export/import macros and namespace declaration for the DSP library.
#define DSPSHARED_EXPORT
Definition dsp_global.h:50
FIFF file I/O, in-memory data structures and high-level readers/writers.
Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms).
DSPSHARED_EXPORT Eigen::VectorXd computeLofScores(const Eigen::MatrixXd &features, int k)
Compute LOF scores for a feature matrix.
DSPSHARED_EXPORT QStringList findBadChannelsLof(const Eigen::MatrixXd &data, const FIFFLIB::FiffInfo &info, const LofBadChannelParams &params=LofBadChannelParams())
Detect bad channels using Local Outlier Factor (LOF).
Full FIFF measurement info: per-channel descriptors, sampling and filter setup, projectors,...
Definition fiff_info.h:88