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

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

?? lindemo.m

?? 用于分類的matlab工具箱
?? M
?? 第 1 頁 / 共 2 頁
字號:
function result = lindemo(action,hfigure,varargin)% LINDEMO demo on the linear learning algorithms.%% LINDEMO demonstrates use of the algorithms which find %  linear decision hyperplane between two (dichotomy)%  point sets. Input data must be 2-dimensional and%  can be interactively created by the user.%%  The program vizualizes found hyperplane in the current %  algorithm step. Badly clasiffied point, which will be used %  by the algorithm for updating of the solution, is also%  vizualized. Text description of the state of the tested %  algorithm is printed in the comment window.%%  Following algorithms can be tested:%%  Perceptron  - Perceptron learning rule.%  Kozinec     - Kozinec's algorithm.%  e-Kozinec   - Modified Kozinec's algorithm finding e-optimal solution.%  LinearSVM   - linear version of the Supprot Vector Machines.%% Control:%  Algorithm  - select algorithm for testing.%  Epsilon    - input parameter for the EKOZINEC algorithm %               (see help ekozinec).%  Iterations - number of iterations in one step.%  Animation  - enable/dissable animation.%%  FIG2EPS     - export screen to the PostScript 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 PERCEPTR, KOZINEC, EKOZINEC, LINSVM.%% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz% Written Vojtech Franc (diploma thesis) 26.02.2000, 15.5.2000% Modifications% 24. 6.00 V. Hlavac, comments polished.% 11-dec-2000 V. Franc, a little increasing of code readibility% 15-dec-2000LINE_WIDTH=1;        % width of separation lineANIM_STEPS=10;       % number of steps during the line animationBORDER=0.2;          % minimal space between axis and pointsDATA_IDENT='Finite sets, Enumeration';  % file identifierALGOS=['Perceptron';'Kozinec   ';'e-Kozinec ';  'LinearSVM '];%       ;'p-sum     ';'p-sumv    ';'Navara    ';'Nav-homog ';...%       'linprog   ']; % list of algos% if number of arguments is less then 1, that means first call of this% function. Every other calls set up at least argument actionif nargin < 1,   action = 'initialize';end% what action is required ?switch lower(action)case 'initialize'   % == Initialize user interface control and figure =======   % == Figure =============================================   left=0.1;   width=0.8;   bottom=0.1;   height=0.8;
   hfigure=figure('Name','Linear discriminant function', ...      'Visible','off',...
    'NumberTitle','off', ...
      'Units','normalized', ...
      'Position',[left bottom width height],...
      'Units','normalized', ...
      'tag','Lindemo',...
      'RendererMode','manual');

   % == Axes =========================================   left=0.1;
   width=0.65;
   bottom=0.35;
   height=0.60;
   haxes1=axes(...
       'Units','normalized', ...
      'Box','on', ...
      'DrawMode','fast',...
      'UserData',[],...
      'Position',[left bottom width height]);
   xlabel('feature x');
   ylabel('feature y');

   % == Comment window =================================   % Comment Window frame
   bottom=0.05;
   height=0.2;
   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.05;
   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','lindemo(''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', ...
      'Callback','lindemo(''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: start up adaptation
   bottom=bottom+height;
   hbtplay = uicontrol(...
    'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Play', ...
      'Callback','lindemo(''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','lindemo(''reset'',gcf)');

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

   % Load data
   bottom=bottom+1*height;
    hbtload = uicontrol(...
      'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Load data', ...
      'Callback','lindemo(''getfile'',gcf)');

   % == Popup menus ======================================   % Pop up menu for the selection between algorithms
    % title
   bottom=0.95-height;
   htxalgo=uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width height], ...
      'String','Algorithm');
   % popup menu
   bottom=bottom-height;
   hpualgo=uicontrol( ...
      'Style','popup', ...
      'Units','normalized', ...
      'CallBack','lindemo(''epshandler'',gcf)',...
      'Position',[left bottom width height], ...
      'String',ALGOS);

   % == Edit line ========================================   % epsilon
   bottom=bottom-1.2*height;
   htxeps=uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width 0.9*height], ...
      'Enable','off',...
      'String','epsilon');
   bottom=bottom-height;
   hedeps = uicontrol(...
    'Units','normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'Style','edit',...
      'Enable','off',...
      'CallBack','lindemo(''epshandler'',gcf)',...
      'String','1e-3');

   % # of iterations
   bottom=bottom-1.1*height;
   htxiter=uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width 0.9*height], ...
      'String','Iterations');

   bottom=bottom-0.9*height;
   hediter = uicontrol(...
    'Units','normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'Style','edit',...
      'CallBack','lindemo(''iterhandler'',gcf)',...
      'String','1');

   % == Check boxes ==============================================   % Make check box to determine if a line will be drawn in one    % step or smooth plot.
   bottom=bottom-height*1.2;
    hxbanim = uicontrol(...
    'Style','checkbox', ...
    'Units','normalized', ...
    'ListboxTop',0, ...
    'Position',[left bottom width height], ...
    'String','Animation');

    % ============================================================   % Store handlers
   handlers=struct(...
      'line',struct('handler',-1,'alpha',0,'theta',0,'t',0),...      'btstep',hbtstep,...      'btstop',hbtstop,...      'btclose',hbtclose,...      'btplay',hbtplay,...      'btreset',hbtreset,...      'btinfo',hbtinfo,...      'btload',hbtload,...      'btcreat',hbtcreat,...      'pualgo',hpualgo,...      'console',hconsole,...      'editer',hediter,...      'edeps',hedeps,...      'txeps',htxeps,...      'axes1',haxes1,...      'xbanim',hxbanim);   set(hfigure,'UserData',handlers)   % Reset   lindemo('reset',hfigure);   % Put figure on desktop   set(hfigure,'Visible','on');   drawnow;case 'iterhandler'
   % == Handler for edit line Iterations ===============   h=get(hfigure,'UserData');   iter=round(str2num(get(h.editer,'String')));
   if isempty(iter) | iter < 1, iter=1; end
   set(h.editer,'String',num2str(iter));


case 'epshandler'
   % == Handler for edit line Epsilon =======================   h=get(hfigure,'UserData');   % if algorithm e-Kozinec is selected then ...   if get(h.pualgo,'Value')==3,      set(h.edeps,'Enable','on');
      set(h.txeps,'Enable','on');

      epsil=str2num(get(h.edeps,'String'));
      if epsil < 0,
         epsil=1;
         set(h.edeps,'String',num2str(epsil));
      end
   else
      set(h.edeps,'Enable','off');
      set(h.txeps,'Enable','off');
   end


case 'creatdata'
   % == Invoke data set creator ================================   creatset('finite',2,'lindemo','created',hfigure);


case 'created'
   % == Load new created data set =============================
   % get handler and make this figure active
   figure(hfigure);
   h=get(hfigure,'UserData');

   % get file name
   path=varargin{1};
   name=varargin{2};
   pathname=strcat(path,name);

   if checkdat(pathname,DATA_IDENT,2,[0 0])==1,
      file.pathname=pathname;
      file.path=path;
      file.name=name;
      set(h.btload,'UserData',file);
      lindemo('loadsets',hfigure);
      lindemo('reset',hfigure);
   else
      errordlg('This file does not contain required data.','Bad file','modal');   end


case 'getfile'
   % == Invoke standard open file dialog ===================   % Opens file and checks if contains appropriate data,    % if yes loads data.
   h=get(hfigure,'UserData');   [name,path]=uigetfile('*.mat','Open file');
   if name~=0,
      file.pathname=strcat(path,name);
      file.path=path;
      file.name=name;
      if checkdat(file.pathname,DATA_IDENT,2,[0 0])==1,
         set(h.btload,'UserData',file);
         lindemo('loadsets',hfigure);
         lindemo('reset',hfigure);
      else

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久永久免费观看| 欧美精品久久99| 国产婷婷色一区二区三区在线| 日本大胆欧美人术艺术动态| 91精品国产福利在线观看| 久久成人精品无人区| 久久九九国产精品| 99国产精品久久| 性感美女久久精品| 欧美tk丨vk视频| av中文一区二区三区| 一区二区三区产品免费精品久久75| 色哟哟一区二区在线观看| 天堂久久久久va久久久久| 日韩视频免费观看高清完整版在线观看 | 一区二区三区四区国产精品| 欧美日韩你懂的| 免费看欧美美女黄的网站| 久久久精品2019中文字幕之3| 波多野结衣一区二区三区| 亚洲一区二区三区四区在线免费观看| 欧美猛男超大videosgay| 韩国一区二区视频| 亚洲免费在线视频一区 二区| 欧美精品久久一区二区三区| 国产精品一二二区| 亚洲在线成人精品| 久久这里都是精品| 欧美日韩五月天| 豆国产96在线|亚洲| 亚洲午夜一二三区视频| 精品久久国产97色综合| 色综合亚洲欧洲| 另类综合日韩欧美亚洲| 日韩一区有码在线| 日韩欧美亚洲国产精品字幕久久久| 国产成人丝袜美腿| 亚洲一区二区精品久久av| 国产日韩成人精品| 337p亚洲精品色噜噜噜| 97久久超碰精品国产| 麻豆精品一二三| 亚洲一区二区中文在线| 国产精品欧美经典| 欧美不卡一区二区三区四区| 欧美日韩一区中文字幕| 成人爱爱电影网址| 激情综合五月婷婷| 视频一区二区三区在线| 亚洲男同性视频| 国产精品沙发午睡系列990531| 91精品国产91久久综合桃花| 色婷婷综合久久久中文一区二区| 国产制服丝袜一区| 免费一级片91| 天天做天天摸天天爽国产一区| 亚洲欧美国产高清| 中文子幕无线码一区tr| 国产婷婷精品av在线| 日韩欧美自拍偷拍| 欧美巨大另类极品videosbest| 色综合久久久久网| 成人免费毛片嘿嘿连载视频| 国模大尺度一区二区三区| 奇米色777欧美一区二区| 一区二区三区四区视频精品免费| 国产精品久久久久久久久快鸭| 欧美激情中文不卡| 久久久久久久久99精品| 久久伊人蜜桃av一区二区| 精品av综合导航| 欧美电视剧在线观看完整版| 日韩一区二区免费在线观看| 欧美酷刑日本凌虐凌虐| 91.麻豆视频| 3751色影院一区二区三区| 欧美巨大另类极品videosbest| 欧美高清激情brazzers| 6080午夜不卡| 日韩一区二区三区免费看| 欧美成人a∨高清免费观看| www成人在线观看| 久久亚洲影视婷婷| 国产欧美久久久精品影院| 亚洲国产精品精华液2区45| 国产欧美日韩麻豆91| 中文字幕一区二区三区不卡| 亚洲免费大片在线观看| 亚洲综合男人的天堂| 亚洲mv在线观看| 日本vs亚洲vs韩国一区三区二区| 奇米精品一区二区三区四区| 激情图区综合网| 成人涩涩免费视频| 色综合网站在线| 6080yy午夜一二三区久久| 精品美女一区二区| 中文字幕第一区二区| 一区二区三区日韩精品| 免费成人小视频| 大美女一区二区三区| 一本到不卡免费一区二区| 欧美视频你懂的| 精品国产乱码久久久久久浪潮| 亚洲国产精品黑人久久久| 一区二区三区中文字幕| 美女网站视频久久| 成人福利视频网站| 欧美日本一区二区在线观看| 久久久噜噜噜久久中文字幕色伊伊| 国产精品福利在线播放| 亚洲一区国产视频| 国产成人综合亚洲91猫咪| 一本大道久久a久久精品综合| 欧美一区二区三区在线观看 | 成人av电影免费观看| 欧美午夜不卡在线观看免费| 欧美va在线播放| 自拍偷拍欧美激情| 麻豆91精品91久久久的内涵| 99这里只有久久精品视频| 91精品婷婷国产综合久久性色| 国产精品久久久久毛片软件| 亚洲成人手机在线| 成人免费观看男女羞羞视频| 3d动漫精品啪啪一区二区竹菊| 中文字幕在线不卡| 美国十次综合导航| 91久久精品一区二区| 久久综合狠狠综合| 婷婷一区二区三区| 成人精品一区二区三区四区| 欧美一区二区三区视频免费播放 | 男人操女人的视频在线观看欧美| 国产福利一区二区三区视频在线 | 亚洲成av人片在线观看| 成熟亚洲日本毛茸茸凸凹| 91精品蜜臀在线一区尤物| 亚洲黄色在线视频| 国产91富婆露脸刺激对白| 日韩欧美一区二区视频| 亚洲综合一区二区| av电影天堂一区二区在线| 欧美精品一区二区在线播放| 亚洲成av人片一区二区| 91啪亚洲精品| 亚洲国产精品精华液2区45| 久久99精品久久久久久国产越南 | 爽好多水快深点欧美视频| 色婷婷香蕉在线一区二区| 国产日韩欧美一区二区三区综合| 日韩黄色片在线观看| 欧美日韩在线亚洲一区蜜芽| 一区二区三区 在线观看视频| 成人网在线免费视频| 国产亚洲一区字幕| 欧美aaaaa成人免费观看视频| 欧美情侣在线播放| 五月婷婷综合网| 欧美日韩国产美女| 亚洲va国产天堂va久久en| 欧美亚洲动漫另类| 亚洲综合一区二区精品导航| 色呦呦国产精品| 一区二区三区精品视频在线| 色哟哟国产精品| 一区二区三区.www| 欧美日韩免费观看一区二区三区 | 中文字幕第一页久久| 国产成人在线看| 国产精品女上位| caoporm超碰国产精品| 亚洲人精品午夜| 91久久精品一区二区| 天堂av在线一区| 这里只有精品视频在线观看| 免费成人在线观看视频| 久久婷婷久久一区二区三区| 国产乱人伦偷精品视频不卡| 国产欧美一区二区三区在线看蜜臀| 国产69精品久久久久777| 自拍偷拍亚洲欧美日韩| 欧美系列日韩一区| 蜜臀a∨国产成人精品| 久久久久久久久岛国免费| 不卡一卡二卡三乱码免费网站| 一区二区三区精品视频在线| 51精品国自产在线| 国产传媒欧美日韩成人| 亚洲精品少妇30p| 欧美电影一区二区三区| 久久se精品一区精品二区| 国产精品系列在线| 欧洲国内综合视频| 久久超碰97人人做人人爱| 久久久久久电影| 91久久精品午夜一区二区| 蜜桃视频免费观看一区| 国产精品久久久久影院色老大 | 91精品国产欧美日韩|