v2.0.0
Loading...
Searching...
No Matches
bad_channels_lof.h
Go to the documentation of this file.
1//=============================================================================================================
28
29#ifndef BAD_CHANNELS_LOF_H
30#define BAD_CHANNELS_LOF_H
31
32//=============================================================================================================
33// INCLUDES
34//=============================================================================================================
35
36#include "dsp_global.h"
37
38//=============================================================================================================
39// EIGEN INCLUDES
40//=============================================================================================================
41
42#include <Eigen/Core>
43
44//=============================================================================================================
45// QT INCLUDES
46//=============================================================================================================
47
48#include <QStringList>
49
50//=============================================================================================================
51// FORWARD DECLARATIONS
52//=============================================================================================================
53
54namespace FIFFLIB
55{
56class FiffInfo;
57}
58
59//=============================================================================================================
60// DEFINE NAMESPACE UTILSLIB
61//=============================================================================================================
62
63namespace UTILSLIB
64{
65
66//=============================================================================================================
73{
74 int iNNeighbors = 20;
75 double dThreshold = 2.0;
76 bool bMegOnly = false;
77 bool bEegOnly = false;
78};
79
80//=============================================================================================================
95DSPSHARED_EXPORT QStringList findBadChannelsLof(const Eigen::MatrixXd& data,
96 const FIFFLIB::FiffInfo& info,
98
99//=============================================================================================================
110DSPSHARED_EXPORT Eigen::VectorXd computeLofScores(const Eigen::MatrixXd& features,
111 int k);
112
113} // namespace UTILSLIB
114
115#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:90