亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? unsudemo.m

?? Edge detection with svm (doc and matlabcode)
?? M
?? 第 1 頁 / 共 2 頁
字號:
function []=unsudemo(action,hfigure,varargin)% UNSUDEMO demo on unsupervised (EM) learning algorithm.%% UNSUDEMO demonstrates the unsupervised (Expectation-Maximization) %   learning algorithm on simple examples in 2D space.%%   The aim is to estimate a statistical model described as the%   weighted mixture of Gaussians from unlabeled data %   (point set/patterns). The input data is supposed to be%   identicaly and independently seleted.%%   The found model is described by ellipsoids (shape of %   covariances) and a croses (mean value vectors). The value%   of the optimized log-likelihood function for given model %   is displayed as well.%% Control:%  Features     - select the model with Independent (diagonal covariance %                 matrix) or Dependent (full cov. matrix) features.%  % of classes - prescribe the number of classes (components of the %                 mixture of Gaussians).%               %  Iterations   - number of iterations in one step.%  Random init  - the initial model is randomly generated and/or it is %                 determined by the first n-patterns (mean values)%                 and sample covarinace matrix (covarinaces matrices).%%  FIG2EPS     - export screen to the PostScript file.%  Save model  - save current model to file.%  Load data   - load input point sets from file.%  Create data - invoke program for creating point sets.%  Reset       - set the tested algorithm to the initial state.%  Play        - run the tested algorithm.%  Stop        - stop the running algorithm.%  Step        - perform only one step.%  Info        - invoke the info box.%  Close       - close the program.%% See also UNSUNI, UNSUND.%% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz% Written Vojtech Franc (diploma thesis) 10.11.1999% Modifications% 11-june-2001, V.Franc, comments added.% 27.02.00 V. Franc%  5. 4.00 V. Franc% 23.06.00 V. Hlavac Comments polished. Message when no data loaded.%                    Export of the solution to global variables.% 27-mar-2001, V.Franc, Graph og log-likelihood function added% Used functions: PPOINTS, PNMIX% == Global variables, used to export results from UNSUDEMO ========global UNSU_MI       % K vectors with mean valuesglobal UNSU_SIGMA    % K covariance matricesglobal UNSU_PK       % K apriori probabilities for each distributions.%global UNSU_eI      % Used only by the next iteration, not globalisedglobal UNSU_solution % 1 if alg. finished in stationary point, 0 otherwiseglobal UNSU_t        % Number of iterations the algorithm performed% == Constants =====================================================AXIST_ADD=10;AXISY_ADD=5;BORDER=0.25;           % space betwean window outer and the points
CENTERSIZE=10;         % size of center point
LINE_WIDTH=1;
AXIST_ADD=10;
DATA_IDENT='Finite sets, enumeration';   % file identifier
randinit=1;

if nargin < 1,
   action = 'initialize';
end

% What action is required ?
switch lower(action)

case 'initialize'
   % == Initialize user interface control and figure window ================

   % == Figure   % =============================================================
   left=0.2;   width=0.6;   bottom=0.1;   height=0.8;   hfigure=figure('Name','Unsupervised learning', ...      'Visible','off',...      'NumberTitle','off', ...      'Units','normalized', ...      'Position',[left bottom width height],...      'tag','Unsudemo',...      'doublebuffer','on',...      'backingstore','off');      % == Axes ===============================================================   left=0.1;   width=0.65;   bottom=0.45;   height=0.5;   haxes1=axes(...      'Units','normalized', ...      'NextPlot','add',...      'UserData',[],...      'Position',[left bottom width height]);   xlabel('feature x');   ylabel('feature y');   htitle1=title('No data loaded',...
      'VerticalAlignment','bottom',...
      'Parent',haxes1,...      'HorizontalAlignment','left',...
      'Units','normalized',...
      'Position',[0 1 0]);
   % axes log-Likelihood graph   left=0.1;   width=0.65;   bottom=0.1;   height=0.25;   haxes2=axes(...      'Units','normalized', ...      'NextPlot','add',...      'Position',[left bottom width height]);   ylabel('logL(t)');      htitle2=title('Log-likelihood function',...       'Parent',haxes2,...       'VerticalAlignment','bottom',...       'Units','normalized',...       'HorizontalAlignment','left',...       'Position',[0 1 0]);    htxsteps=xlabel('step number t=0');            % == Comment Window frame ==============================================
%%   bottom=0.05;
%%   height=0.16;
%%   uicontrol( ...
%%        'Style','frame', ...
%%        'Units','normalized', ...
%%        'Position',[left bottom width height], ...
%%        'BackgroundColor',[0.5 0.5 0.5]);

   % Text label
%   uicontrol( ...
%        'Style','text', ...
%        'Units','normalized', ...
%        'Position',[left height-0.01 width 0.05], ...
%        'BackgroundColor',[0.5 0.5 0.5], ...
%        'ForegroundColor',[1 1 1], ...
%        'String','Comment Window');

   % Edit window
%%   border=0.01;
%%   hconsole=uicontrol( ...
%%        'Style','edit', ...
%%        'HorizontalAlignment','left', ...
%%        'Units','normalized', ...
%%        'Max',10, ...
%%        'BackgroundColor',[1 1 1], ...
%%        'Position',[left+border bottom width-2*border height-0.05], ...
%%      'Enable','inactive',...
%%        'String','');
   % == Buttons ===========================================================
   % -- Export to EPS ---------
   width=0.1;
   left=0.75-width;
   bottom=0.95;
   height=0.04;
   hbtclose = uicontrol(...
    'Units','Normalized', ...
      'Callback','fig2eps(gcf)',...
        'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','FIG2EPS');
   %----------------------------------

   % Close button
   left=0.8;
   bottom=0.05;
   height=0.044;
   width=0.15;
   hbtclose = uicontrol(...
    'Units','Normalized', ...
      'Callback','close(gcf)',...
        'ListboxTop',0, ...
        'Position',[left bottom width height], ...
        'String','Close');

   % Info button: call stanard info box
   bottom=bottom+1.5*height;
   hbtinfo = uicontrol(...
    'Units','Normalized', ...
      'Callback','unsudemo(''info'',gcf)',...
        'ListboxTop',0, ...
        'Position',[left bottom width height], ...
        'String','Info');

   % Step button: perform one adaptation step
   bottom=bottom+1.5*height;
    hbtstep = uicontrol(...
      'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Step', ...
      'Interruptible','off',...
      'Callback','unsudemo(''step'',gcf)');

   % Stop button: stop process of adaptation
   bottom=bottom+height;   hbtstop = uicontrol(...
    'Units','Normalized', ...
        'ListboxTop',0, ...
        'Position',[left bottom width height], ...      'String','Stop', ...
      'Callback','set(gcbo,''UserData'',1)',...      'Enable','off');
   % Play button: begin adaptation
   bottom=bottom+height;
   hbtplay = uicontrol(...
    'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Play', ...
      'Callback','unsudemo(''play'',gcf)');

   % Reset button: set up t = 0
   bottom=bottom+height;
    hbtreset = uicontrol(...
      'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Reset', ...
      'Callback','unsudemo(''reset'',gcf)');

   % Create data
   bottom=bottom+1.5*height;
    hbtcreat = uicontrol(...
      'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Create data', ...
      'Callback','unsudemo(''creatdata'',gcf)');

   % Load data
   bottom=bottom+1*height;
    hbtload = uicontrol(...
      'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Load data', ...
      'Callback','unsudemo(''getfile'',gcf)');
   % Save model   bottom=bottom+1.5*height;
    hbtSaveModel = uicontrol(...
      'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Save model', ...
      'Callback','unsudemo(''savemodel'',gcf)');
   % Load model%   bottom=bottom+1*height;
%    hbtLoadModel = uicontrol(...
%      'Units','Normalized', ...
%      'ListboxTop',0, ...
%        'Position',[left bottom width height], ...
%      'String','Load model', ...
%      'Callback','unsudemo(''loadmodel'',gcf)');

   % == PopUp Menu =====================================================
   bottom=0.95-height;
   htxfeatures=uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width height], ...
      'String','Features');
   % popup menu
   bottom=bottom-height;
   hpufeatures=uicontrol( ...
      'Style','popup', ...
      'Units','normalized', ...
      'Position',[left bottom width height], ...
      'String',['Independent ';'Dependent   ']);

   % == Edit line ==========================================================
   % prior info about number of the classes
   bottom=bottom-1.3*height;
   htxclasses=uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width 0.9*height], ...
      'String','# of classes');
   bottom=bottom-height;
   hedclasses = uicontrol(...
    'Units','normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'Style','edit',...
      'String','2');

   % Iterations
   bottom=bottom-1.3*height;
   htxiter=uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width 0.9*height], ...
      'String','Iterations');
   bottom=bottom-height;
   hediter = uicontrol(...
    'Units','normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'Style','edit',...
      'String','1');

   % == CheckBox =========================================================

   % Should the first algorithm step be random or not ?
   bottom=bottom-height*1.3;
    hxbrandom = uicontrol(...
    'Style','checkbox', ...
       'Units','normalized', ...
    'ListboxTop',0, ...
       'Position',[left bottom width height], ...
    'String','Random init');
   %=====================================================================
   % Store handlers   handlers=struct(...      'ellipse',struct('handler',-1,'mi',[],'sigma',[],'t',0,'Pk',[],...        'solution',0),...      'center',[],...      'graph1',struct('handler',-1,'loglik',[],'axist',0,'time',[]),...      'title1',htitle1,...      'title2',htitle2,...      'btSaveModel',hbtSaveModel,...%      'btLoadModel',hbtLoadModel,...      'btstep',hbtstep,...      'btstop',hbtstop,...       'btclose',hbtclose,...      'btplay',hbtplay,...      'btreset',hbtreset,...      'btinfo',hbtinfo,...      'btload',hbtload,...      'btcreat',hbtcreat,... %%%      'console',hconsole,...      'txsteps',htxsteps,...      'txclasses',htxclasses,...      'txiter',htxiter,...      'txfeatures',htxfeatures,...      'pufeatures',hpufeatures,...      'editer',hediter,...      'xbrandom',hxbrandom,...      'axes1',haxes1,...      'axes2',haxes2,...      'edclasses',hedclasses);   set(hfigure,'UserData',handlers)   % Reset   unsudemo('reset',hfigure);   % Put figure on desktop   set(hfigure,'Visible','on');   drawnow; case 'savemodel'   % == Save model ============================================   h=get(hfigure,'UserData');      if h.ellipse.t == 0,     errordlg('No model has found yet.','No model to save','modal');     return;   end      [name,path]=uiputfile('*.mat','Save model');   if name ~= 0,          MI=h.ellipse.mi;        % mean values     SIGMA=h.ellipse.sigma;  % covariance matrices     Pk=h.ellipse.Pk;        % a-priory probabilities     solution=h.ellipse.solution;     steps=h.ellipse.t;      % number of performed steps          I=[1:size(MI,2)];     N=size(MI,1);     id=dataid(2);     K=ones(1,size(MI,2));          save(strcat(path,name),'id','K','N','I',...         'steps','solution','Pk','SIGMA','MI');        end       case 'loadmodel'   % == Load model ============================================   h=get(hfigure,'UserData');

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品二三区| 成人黄色av电影| 国产福利不卡视频| 91日韩精品一区| 日韩免费观看2025年上映的电影| 国产精品全国免费观看高清| 免费的成人av| 欧美伊人久久大香线蕉综合69 | 欧美一区二区免费| 久久精品人人做人人爽人人| 日产精品久久久久久久性色| 99re热视频这里只精品| 久久久久久电影| 精品一区二区成人精品| 精品视频在线视频| 亚洲卡通欧美制服中文| 粉嫩aⅴ一区二区三区四区| 欧美成人激情免费网| 午夜精品在线看| 欧洲在线/亚洲| 亚洲三级在线免费| 福利电影一区二区| 欧美tickling网站挠脚心| 日韩精品成人一区二区三区| 91丨九色porny丨蝌蚪| 国产欧美一区二区精品性| 精品无人码麻豆乱码1区2区| 欧美一区二区视频在线观看2020 | 风间由美一区二区三区在线观看| 宅男在线国产精品| 日韩国产成人精品| 欧美久久婷婷综合色| 亚洲网友自拍偷拍| 欧美亚洲高清一区二区三区不卡| 亚洲视频在线观看一区| 色婷婷久久综合| 亚洲欧美一区二区不卡| 在线精品视频免费播放| 亚洲一区在线观看网站| 欧美日韩一卡二卡| 免费在线观看视频一区| 日韩欧美精品三级| 国产福利一区在线| 中文文精品字幕一区二区| 成人av一区二区三区| 国产精品国产三级国产专播品爱网 | 日韩精品1区2区3区| 91麻豆精品国产91久久久更新时间| 视频一区欧美精品| 精品99999| 成人免费毛片片v| 亚洲欧美乱综合| 欧美日本在线观看| 精品在线播放免费| 国产精品久久精品日日| 欧美色中文字幕| 蜜桃传媒麻豆第一区在线观看| 久久精品亚洲精品国产欧美| 成人动漫av在线| 亚洲午夜久久久久久久久久久| 91精品国产欧美一区二区| 国产一区二区三区香蕉| 亚洲精选视频免费看| 91精品在线麻豆| 国产91高潮流白浆在线麻豆| 亚洲色大成网站www久久九九| 欧美精品国产精品| 高清不卡一区二区在线| 亚洲激情在线激情| 精品国产亚洲一区二区三区在线观看| 成人h动漫精品一区二区| 亚洲高清一区二区三区| 国产偷v国产偷v亚洲高清| 91福利视频久久久久| 国产在线播放一区| 亚洲一区二区三区四区中文字幕| 欧美va亚洲va在线观看蝴蝶网| 99视频在线精品| 六月丁香综合在线视频| 亚洲色大成网站www久久九九| 日韩女优电影在线观看| 91福利视频网站| 懂色一区二区三区免费观看 | 国产91精品精华液一区二区三区| 亚洲第一久久影院| 国产精品免费视频观看| 欧美一区二区私人影院日本| 色综合天天做天天爱| 国产一区啦啦啦在线观看| 天天影视网天天综合色在线播放| 国产精品人成在线观看免费| 欧美大片顶级少妇| 欧美高清视频不卡网| 一本久久a久久精品亚洲| 国产精品自拍网站| 免费观看30秒视频久久| 亚洲高清免费视频| 亚洲精品成人悠悠色影视| 国产色91在线| 欧美精品一区二区三区一线天视频| 日本大香伊一区二区三区| 成人天堂资源www在线| 九九**精品视频免费播放| 性做久久久久久| 亚洲国产精品麻豆| 一区二区三区高清| 日韩一区欧美一区| 国产精品丝袜在线| 国产亚洲美州欧州综合国| 2019国产精品| 欧美成人高清电影在线| 日韩一区和二区| 日韩欧美一区中文| 日韩一区二区三区四区| 欧美妇女性影城| 欧美一区二区三区在线| 8v天堂国产在线一区二区| 欧美日韩夫妻久久| 91精品国产一区二区人妖| 欧美电影一区二区三区| 欧美精品自拍偷拍动漫精品| 欧美精品久久一区二区三区| 91麻豆精品久久久久蜜臀| 欧美一区中文字幕| 日韩欧美色综合网站| 精品国产乱码91久久久久久网站| 欧美不卡在线视频| 久久午夜免费电影| 国产精品欧美一区喷水| 亚洲视频你懂的| 亚洲国产三级在线| 美国毛片一区二区| 国产乱码字幕精品高清av | 国产精品久久久久久久久动漫| 国产精品电影院| 亚洲欧美日韩国产综合在线| 亚洲午夜精品在线| 美女一区二区在线观看| 国产在线一区观看| 97久久超碰精品国产| 欧美视频三区在线播放| 欧美成人一区二区三区| 国产精品久久久久三级| 一区二区三区中文免费| 麻豆91在线观看| 国产福利精品导航| 一本久久a久久精品亚洲| 欧美精选在线播放| 欧美激情一区二区在线| 亚洲猫色日本管| 久久国产福利国产秒拍| 9i在线看片成人免费| 欧美精选午夜久久久乱码6080| 久久精品一区二区三区av| 一区二区三区在线看| 免费人成精品欧美精品 | 欧美性一二三区| 精品国产凹凸成av人网站| 亚洲欧美中日韩| 蜜桃av一区二区| 色综合久久久久综合99| 日韩精品中文字幕在线不卡尤物| 亚洲日穴在线视频| 久久精品99国产精品| 欧美在线你懂的| 中文成人综合网| 捆绑调教美女网站视频一区| 色美美综合视频| 欧美成人一区二区三区片免费| 亚洲精品你懂的| 福利一区二区在线| 日韩免费高清av| 天天爽夜夜爽夜夜爽精品视频| 成人av影视在线观看| 欧美v日韩v国产v| 亚洲v精品v日韩v欧美v专区| 99国产精品久久久久久久久久久| 日韩精品一区二区三区在线观看| 亚洲一区二区三区四区的| 成人成人成人在线视频| 久久看人人爽人人| 青青草国产成人av片免费| 欧美三区在线观看| 亚洲伦在线观看| 97久久超碰国产精品| 欧美国产日韩一二三区| 国产乱码精品一区二区三| 91精品国产福利在线观看| 亚洲 欧美综合在线网络| 91在线视频在线| 中文字幕一区二区三区不卡在线 | 亚洲情趣在线观看| 国产ts人妖一区二区| 2021久久国产精品不只是精品| 日韩av中文字幕一区二区| 欧美高清激情brazzers| 丝袜亚洲另类丝袜在线| 欧美日韩午夜影院| 亚洲va欧美va人人爽午夜| 欧美日韩大陆在线|