SharpBCI
A multi-threaded brain control interface (BCI) library in C#
|
A detector which uses an underlying AR model to detect artifacts. More...
Public Member Functions | |
ARArtifactDetector (ARModel model) | |
double | Error () |
Inform the caller of the current confusion of this implementation The returned value should be a double greater than or equal to zero Otherwise no range is assumed, but lower values should indicate lower confusion For example, a detector that perfectly models the signal with no artifacts should have an error of zero Pragmatically, error will generally be non-zero due to presence of artifacts and noise. More... | |
bool | Detect (double next) |
Update artifact detector using next. More... | |
Public Attributes | |
const double | ARTIFACT_THRESHOLD = 2 |
A detector which uses an underlying AR model to detect artifacts.
The difference between the observed data and the predicted data is known internally as error. This error is distributed normally and if the observed error is more than the 95% CI interval, the observed data is assumed to be an artifact and is not added to the error distribution. In this IArtifactDetector, Error is equal to the variance of another (unfiltered) distribution of error.
SharpBCI.ARArtifactDetector.ARArtifactDetector | ( | ARModel | model | ) |
bool SharpBCI.ARArtifactDetector.Detect | ( | double | next | ) |
Update artifact detector using next.
Implements SharpBCI.IArtifactDetector.
double SharpBCI.ARArtifactDetector.Error | ( | ) |
Inform the caller of the current confusion of this implementation The returned value should be a double greater than or equal to zero Otherwise no range is assumed, but lower values should indicate lower confusion For example, a detector that perfectly models the signal with no artifacts should have an error of zero Pragmatically, error will generally be non-zero due to presence of artifacts and noise.
Implements SharpBCI.IArtifactDetector.
const double SharpBCI.ARArtifactDetector.ARTIFACT_THRESHOLD = 2 |