ImageVerifierCode 换一换
你正在下载:

fasticag.docx

[预览]
格式:DOCX , 页数:20 ,大小:18.12KB ,
资源ID:6424414      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/6424414.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(fasticag.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

fasticag.docx

1、fasticagfunction fasticag(mixedsig, InitialGuess)%FASTICAG - Fast Independent Component Analysis, the Graphical User Interface% FASTICAG gives a graphical user interface for performing independent% component analysis by the FastICA package. No arguments are% necessary in the function call.% Optional

2、 arguments can be given in the form:% FASTICAG(mixedsig, initialGuess) where the matrix mixedsig contains the% multidimensional signals as row vectors, and initialGuess gives the% initial value for the mixing matrix used in the algorithm.% FASTICA uses the fixed-point algorithm developed by Aapo Hyv

3、arinen,% see http:/www.cis.hut.fi/projects/ica/fastica/. The Matlab package% was programmed by Hugo Gavert, Jarmo Hurri, Jaakko Sarela, and Aapo% Hyvarinen.% See also FASTICA% (#)$Id: fasticag.m,v 1.5 2005/10/19 13:05:34 jarmo Exp $% Global values% Handle to this main figureglobal hf_FastICA_MAIN;%

4、Check to see if GUI is already running% Cant have more than one copy - otherwise the global% variables and handles can get mixed up.if isempty(hf_FastICA_MAIN) error(FastICA GUI already running!);end% Handles to other controls in this main windowglobal ht_FastICA_mixedStatus;global ht_FastICA_dim;gl

5、obal ht_FastICA_numOfSamp;global ht_FastICA_newDim;global ht_FastICA_whiteStatus;global ht_FastICA_icaStatus;global hpm_FastICA_approach;global he_FastICA_numOfIC;global hpm_FastICA_g;global hpm_FastICA_stabilization;% These global variables are used to store all the values% I used to use the UserDa

6、ta field of components, but% that got too complex, so I decided to put everything% in global variablesglobal g_FastICA_mixedsig;global g_FastICA_pca_D;global g_FastICA_pca_E;global g_FastICA_white_sig;global g_FastICA_white_wm;global g_FastICA_white_dwm;global g_FastICA_ica_sig;global g_FastICA_ica_

7、A;global g_FastICA_ica_W;global g_FastICA_initGuess;global g_FastICA_approach;global g_FastICA_numOfIC;global g_FastICA_g;global g_FastICA_finetune;global g_FastICA_a1;global g_FastICA_a2;global g_FastICA_myy;global g_FastICA_stabilization;global g_FastICA_epsilon;global g_FastICA_maxNumIte;global g

8、_FastICA_maxFinetune;global g_FastICA_sampleSize;global g_FastICA_initState;global g_FastICA_displayMo;global g_FastICA_displayIn;global g_FastICA_verbose;% initial values for them:% All the initial values are set here - even for% variables that are not used in this fileif nargin 2 g_FastICA_initGue

9、ss = 1; % The user didnt enter initial guess so we default % back to random initial state. g_FastICA_initState = 1; % see below for string valueselse g_FastICA_initGuess = InitialGuess; % If initial guess was entered, then the user probably % want to use it, eh? g_FastICA_initState = 2; % see below

10、for string valuesendif nargin 1 g_FastICA_mixedsig = ;else g_FastICA_mixedsig = mixedsig; % Well remove meanend % the first time we % use this.% Global variable for stopping the ICA calculationsglobal g_FastICA_interrupt;g_FastICA_pca_D = ;g_FastICA_pca_E = ;g_FastICA_white_sig = ;g_FastICA_white_wm

11、 = ;g_FastICA_white_dwm = ;g_FastICA_ica_sig = ;g_FastICA_ica_A = ;g_FastICA_ica_W = ;g_FastICA_approach = 1; % see below for string valuesg_FastICA_numOfIC = 0;g_FastICA_g = 1; % see below for string valuesg_FastICA_finetune = 5; % see below for string valuesg_FastICA_a1 = 1;g_FastICA_a2 = 1;g_Fast

12、ICA_myy = 1;g_FastICA_stabilization = 2; % see below for string valuesg_FastICA_epsilon = 0.0001;g_FastICA_maxNumIte = 1000;g_FastICA_maxFinetune = 100;g_FastICA_sampleSize = 1;g_FastICA_displayMo = 1; % see below for string valuesg_FastICA_displayIn = 1;g_FastICA_verbose = 1; % see below for string

13、 values% These are regarded as constants and are used to store% the strings for the popup menus the current value is% seen in the variables above% D - refers to strings that are displayed% V - refers to string values that are used in FPICAglobal c_FastICA_appr_strD;global c_FastICA_appr_strV;global

14、c_FastICA_g1_strD;global c_FastICA_g1_strV;global c_FastICA_g2_strD;global c_FastICA_g2_strV;global c_FastICA_finetune_strD;global c_FastICA_finetune_strV;global c_FastICA_stabili_strD;global c_FastICA_stabili_strV;global c_FastICA_iSta_strD;global c_FastICA_iSta_strV;global c_FastICA_dMod_strD;glob

15、al c_FastICA_dMod_strV;global c_FastICA_verb_strD;global c_FastICA_verb_strV;% All the values for these are set here - even for% variables that are not used in this filec_FastICA_appr_strD = deflation|symmetric;c_FastICA_appr_strV = defl;symm;% The g1 and g2 below correspond to the values of approac

16、h (1 or 2)% Deflation and Symmetric used to have a bit different selection% of available nonlinearities.c_FastICA_g1_strD = pow3|tanh|gauss|skew;c_FastICA_g1_strV = pow3;tanh;gaus;skew;c_FastICA_g2_strD = pow3|tanh|gauss|skew;c_FastICA_g2_strV = pow3;tanh;gaus;skew;c_FastICA_finetune_strD = pow3|tan

17、h|gauss|skew|off;c_FastICA_finetune_strV = pow3;tanh;gaus;skew;off ;c_FastICA_stabili_strD = on|off;c_FastICA_stabili_strV = on ;off;c_FastICA_iSta_strD = random|guess;c_FastICA_iSta_strV = rand ;guess;c_FastICA_dMod_strD = signals|basis|filters|off;c_FastICA_dMod_strV = signals;basis ;filters;off ;

18、c_FastICA_verb_strD = on|off;c_FastICA_verb_strV = on ;off;% Configuration optionsFIGURENAME = FastICA;FIGURETAG = f_FastICA;SCREENSIZE = get(0,ScreenSize);FIGURESIZE = round(0.1*SCREENSIZE(3) (SCREENSIZE(4)-round(0.1*SCREENSIZE(4)-370) 530 370;% Create the figurea = figure(Color,0.8 0.8 0.8, . Pape

19、rType,a4letter, . Name, FIGURENAME, . NumberTitle, off, . Tag, FIGURETAG, . Position, FIGURESIZE, . MenuBar, none);% Resizing has to be denied after the window has been created -% otherwise the window shows only as a tiny window in Windows XP.set (a, Resize, off);hf_FastICA_MAIN = a;set(hf_FastICA_M

20、AIN, HandleVisibility, callback);% From here on it gets ugly as I have not had time to clean it up% Create the framespos_l=2;pos_w=FIGURESIZE(3)-4;pos_h=FIGURESIZE(4)-4;pos_t=FIGURESIZE(4)-2-pos_h;h_f_background = uicontrol(Parent,a, . BackgroundColor,0.701961 0.701961 0.701961, . Position,pos_l pos

21、_t pos_w pos_h, . Style,frame, . Tag,f_background);pos_l=4;pos_w=400;pos_h=106;pos_t=FIGURESIZE(4)-4-pos_h;h_f_mixed = uicontrol(Parent,a, . BackgroundColor,0.701961 0.701961 0.701961, . Position,pos_l pos_t pos_w pos_h, . Style,frame, . Tag,f_mixed);pos_h=90;pos_t=FIGURESIZE(4)-(106+4+2)-pos_h;h_f_

22、white = uicontrol(Parent,a, . BackgroundColor,0.701961 0.701961 0.701961, . Position,pos_l pos_t pos_w pos_h, . Style,frame, . Tag,f_white);pos_h=pos_t - 4 - 2;pos_t=4;h_f_ica = uicontrol(Parent,a, . BackgroundColor,0.701961 0.701961 0.701961, . Position,pos_l pos_t pos_w pos_h, . Style,frame, . Tag

23、,f_ica);pos_w=120;pos_l=FIGURESIZE(3)-(pos_w+2+2);pos_h=FIGURESIZE(4)-2*4;pos_t=FIGURESIZE(4)-(4)-pos_h;h_f_side = uicontrol(Parent,a, . BackgroundColor,0.5 0.5 0.5, . Position,pos_l pos_t pos_w pos_h, . Style,frame, . Tag,f_side);% Controls in f_mixedbgc = get(h_f_mixed, BackgroundColor);pos_vspace

24、 = 6;pos_hspace = 6;pos_frame=get(h_f_mixed, Position);pos_l = pos_frame(1) + 6;pos_h = 16;pos_t = pos_frame(2) + pos_frame(4) - pos_h - 6;pos_w = 150;b = uicontrol(Parent,a, . BackgroundColor,bgc, . HorizontalAlignment,left, . Position,pos_l pos_t pos_w pos_h, . String,Mixed signals:, . FontWeight,

25、 bold, . Style,text, . Tag,t_mixed);pos_l = pos_l + pos_w;pos_w = 120;ht_FastICA_mixedStatus = uicontrol(Parent,a, . BackgroundColor,bgc, . HorizontalAlignment,left, . Position,pos_l pos_t pos_w pos_h, . String,Not loaded yet, . Style,text, . Tag,t_mixedstatus);% V鋒鋘 v鋖i?pos_t = pos_t - 8;pos_l = po

26、s_frame(1) + 6;pos_t = pos_t - pos_h;pos_w = 150;b = uicontrol(Parent,a, . BackgroundColor,bgc, . HorizontalAlignment,left, . Position,pos_l pos_t pos_w pos_h, . String,Number of signals:, . Style,text, . Tag,t_2);pos_l = pos_l + pos_w;pos_w = 50;ht_FastICA_dim = uicontrol(Parent,a, . BackgroundColo

27、r,bgc, . HorizontalAlignment,left, . Position,pos_l pos_t pos_w pos_h, . String, . Style,text, . Tag,t_dim);pos_l = pos_frame(1) + 6;pos_t = pos_t - pos_h;pos_w = 150;b = uicontrol(Parent,a, . BackgroundColor,bgc, . HorizontalAlignment,left, . Position,pos_l pos_t pos_w pos_h, . String,Number of samples:, . Style,text, . Tag,t_3);pos_l = pos_l + pos_w;pos_w = 50;ht_FastICA_numOfSamp = uicontrol(Parent,a, . BackgroundColor,bgc, . HorizontalAlignment,left, . Position,pos_l pos_t pos_w pos_h, . String, . Style,text, . Tag,t_numOfSamp);% Buttonspos_l = pos_frame(1) + pos_hspace;pos_

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1