takkodama / OpenViBESVMCalc

Calculate the P300 probability of how much the brain wave response of a duration close to the correct answers? using SVM algorithm (libsvm). The input files are designed to use the .csv files which generated under OpenViBE environment. The results will be returned in the form of the .png file, which shapes like a grid search result.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

%
% :-:-:-:-:-:-:-:-:-: Up to date INFO :-:-:-:-:-:-:-:-:
%
% (27/Feb/2016) Caution! EpochLength value should be 0.2 so far because of the duration problem.
% (27/Feb/2016) Caution! This classifier uses the libsvm library on MATLAB version so you
% have to install them from official web pages to use this patch. Please
% refer to the following link about libsvm!
%
% https://www.csie.ntu.edu.tw/~cjlin/libsvm/
%
% :-:-:-:-:-:-:-:-:-: Instruction :-:-:-:-:-:-:-:-:-:
%
% main_LDAcalc(ARG_1(char), ARG_2(char), ARG_3(double), ARG_4(double), ARG_5(double), ARG_6(double));
%
% === Input ===
%
% ARG_1 directory_Training(char): File directory location which has training csv files generated by OpenViBE
% ARG_2 directory_Trial(char): File directory location which has trial csv files generated by OpenViBE
% ARG_3 EpochCount_Train(double): Epoch value for signal to train classifier
% ARG_4 EpochCount_Trial(double): Epoch value for signal to test classifier
% ARG_5 EpochAverage(double): Duration length (seconds) after the stimulus onset
% ARG_6 savePNG(double): If you want to save the result of the graph, this value should be set to 1, othewise 0
%
% === Output ===
%
% Figure: Probability of each duration versus each targets (Grid)
%
% === Example ===
%
% MATLAB > main_SVMcalc('../User/DirectoryName/Target', '../User/DirectoryName/Trial', 10, 1, 0.2, 0);
% MATLAB > main_SVMcalc('../User/DirectoryName/Target', '../User/DirectoryName/Trial', 5, 5, 0.2, 0);
%
% :-:-:-:-: (C) Takumi Kodama, University of Tsukuba, Japan :-:-:-:-:

About

Calculate the P300 probability of how much the brain wave response of a duration close to the correct answers? using SVM algorithm (libsvm). The input files are designed to use the .csv files which generated under OpenViBE environment. The results will be returned in the form of the .png file, which shapes like a grid search result.


Languages

Language:MATLAB 100.0%