SharpBCI
A multi-threaded brain control interface (BCI) library in C#
|
Public Member Functions | |
AggregateKNNDTWPredictor (int channels, int k, double thresholdProb, EEGDataType[] bands) | |
Public Member Functions inherited from SharpBCI.Predictor | |
Predictor (int channels, int k, double thresholdProb, EEGDataType[] bands) | |
void | AddTrainingData (int id, EEGEvent[] events) |
void | ClearTrainingData () |
Clears all training data stored within the predictor Essentially a reset of the entire prediction system Use between changing environments and/or participants. More... | |
void | SetChannelWeights (double[] newWeights) |
void | SetBandWeights (double[] newWeights) |
int | Predict (EEGEvent[] events) |
List< KeyValuePair< int, double > > | ComputeDistances (double[][] data) |
int | Vote (List< KeyValuePair< int, double >> distances) |
Public Member Functions inherited from SharpBCI.IPredictor< T > | |
void | AddTrainingData (int label, T data) |
Add data to labeled training data set. More... | |
int | Predict (T test) |
Makes a prediction from the underlying model based off the new data. More... | |
Protected Member Functions | |
override double | Compute (double[] x, double[] y) |
Additional Inherited Members | |
Public Attributes inherited from SharpBCI.Predictor | |
const int | NO_PREDICTION = -1 |
see AggregatePredictionPipeable.NO_PREDICTION More... | |
Protected Attributes inherited from SharpBCI.Predictor | |
readonly Dictionary < EEGDataType, int > | bandLookup = new Dictionary<EEGDataType, int>() |
Dictionary which maps EEGDataTypes to integers for easy indexing into the buffer. More... | |
readonly Dictionary< int, List < double[][]> > | trainingData = new Dictionary<int, List<double[][]>>() |
Dictionary storing all training data. More... | |
readonly EEGDataType[] | bands |
List of EEGDataTypes that the predictor expects for its training and predictions. More... | |
readonly int | channels |
Number of channels on the headset, as reported by. More... | |
readonly int | k |
A non-negative non-zero integer representing the number of results from KNN algorithm. More... | |
readonly double | thresholdProb |
A double between 0-1 indicating the probability threshhold below which predictions will be thrown out. More... | |
double[] | bandWeights |
double[] | channelWeights |
SharpBCI.AggregateKNNDTWPredictor.AggregateKNNDTWPredictor | ( | int | channels, |
int | k, | ||
double | thresholdProb, | ||
EEGDataType[] | bands | ||
) |
|
protectedvirtual |
Implements SharpBCI.Predictor.