资源简介
csp算法,异步脑机接口特征值提取。脑-机接口(brain-computer interface,BCI)技
术提供了一种非肌肉控制的通讯通道,使大脑可以直接和外部环境进行信息交
互。脑-机接口将人脑的信号直接转换成对外部设备的控制命令
代码片段和文件信息
%%%%%%%%%%%%Please refer to the IEEE article: Optimal spatial filtering of
%%%%%%%%%%%%single trial EEG during imagined hand movement
%%%%%%%%%%for example EEGtrial1=OriginaldataL(::1);then the first and
%%%%%%%%%%last column of EEGtrial is the feature taken into consideration
function [SFLSFR]=cspnum1(OriginaldataLOriginaldataR)
[UTLaverage Raverage]=csp3(OriginaldataLOriginaldataR);
%%%%%%%%%%%To produce the whitenting matrix%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%Check later on if the sum of TL and TR equals to I%%%%%%%%
%%%%%%%%%%%and UL should equals to UR%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
P=T^(-0.5)*U‘;
SLeft=P*Laverage*P‘;
SRight=P*Raverage*P‘;
[ULTL]=eig(SLeft);
[URTR]=eig(SRight);
% dimension=length(UL(1:));
% UNew1=U
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3275 2012-03-19 21:39 cspnum1.m
评论
共有 条评论