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

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

?? andrdemo.m

?? 一個關于SVM支持向量機的計算例程, 用MATLAB做的,請多指教
?? M
?? 第 1 頁 / 共 2 頁
字號:
function result = andrdemo(action,hfigure,varargin)
% ANDRDEMO demo on Generalized Anderson's task.%% ANDRDEMO demonstrates the algorithms which solve %  the Generalized Anderson`s Task (GAT). %%  The found solution (hyperplane, line in 2D) is vizualized %  as well as the input Gaussians which describe input classes.%%  Following algorithms can be tested:%     %  e-Optimal - Epsilon-solution of the GAT.%  Original  - Original Anderson-Bahadur's solution for two distributions.%  Gradient  - Algorithm using theorem of the generalized gradient methods.%  General   - Implementation of general algorithm framework by SH10.%  General2  - Implementation of general algorithm framework, improved.%% Control:%  Algorithm  - select algorithm for testing.%  Parameter input line - parameters for the selected algorithm%             (see help 'given algorithm').%  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 - call interactive program for creating sets of Gaussians.%  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        - display the info box.%  Close       - close the program.%% See also EANDERS, OANDERS, GGANDERS, GANDERS, GANDERS2.%% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac
% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz
% Written Vojtech Franc (diploma thesis) 24.10.1999, 27.02.2000
% Modifications
% 11-June-2001, V.Franc, comments added.% 24. 6.00 V. Hlavac, comments polished.

% constants
ALGONAMES=['e-Optimal ';'Original  ';'Gradient  ';'General   ';'General 2 '];
PREC_TITLE=['Max error (0-50) [%]';...    % e-Optimal solution
            'd(lambda,ni) (0,inf)';...    % Original Anderson`s solution
            'd( min r ) (0,inf)  ';...    % Gradient method
            'd( min r ) (0,inf)  ';...    % General solution 1
            'd( min r ) (0,inf)  '];      % General solution 2
DEF_PRECISION=[5,1e-3,0,0,0];     % default values of the precision of algo. 1,2,3,4,5
BORDER=0.5;
DATA_IDENT='Infinite sets, Normal distributions';       % M-file identifier
%PLOT_FCE='pandr2d';     % outlined ellipsoids
PLOT_FCE='pandr2df';     % outlined ellipsoids

% if number of arguments is less then 1, that means first call of this function. Every
% other calls set up at least argument action
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.1;
   width=0.8;
   bottom=0.1;
   height=0.8;
   hfigure=figure('Name','Anderson`s task', ...
      'Visible','off',...
      'Units','normalized', ...
       'NumberTitle','off', ...
      'Position',[left bottom width height],...
      'tag','Andrdemo',...
      'Units','normalized', ...
      'RendererMode','manual');

   % == Axes ===============================================================
   left=0.1;
   width=0.65;

   % axes for showing sets
   bottom=0.35;
   height=0.60;
   haxes1=axes(...
       'Units','normalized', ...
      'Box','on', ...
      'DrawMode','fast',...
      'NextPlot','add',...
      'Layer','top',...
      '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','andrdemo(''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','andrdemo(''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','andrdemo(''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','andrdemo(''reset'',gcf)');

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

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

   % == Check boxes ===============================================================

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


   % == 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 0.9*height], ...
      'String','Algorithm');
   % popup menu
   bottom=bottom-0.9*height;
   hpualgo=uicontrol( ...
      'Style','popup', ...
      'Units','normalized', ...
      'CallBack','andrdemo(''algohandler'',gcf)',...
      'Position',[left bottom width height], ...
      'UserData',1,...
      'String',ALGONAMES);


   % == Edit lines ================================================================

   bottom=0.95-3.5*height;
   % Precision of solution
   htxprec=uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width 0.9*height], ...
      'String',PREC_TITLE(1,:));

   bottom=bottom-height;
   hedprec = uicontrol(...
    'Units','normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'Style','edit',...
      'String',num2str(DEF_PRECISION(1)) );

   % # of iterations
   bottom=bottom-1.5*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',...
      'String',1);

    % ==============================================================================

   % Store handlers
   handlers=struct(...
      'line',struct('handler',-1,'alpha',0,'alpha1',0,'alpha2',0,'lambda',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,...
      'edprec',hedprec,...
      'editer',hediter,...
      'txprec',htxprec,...
      'axes1',haxes1,...
      'xbanim',hxbanim);

   set(hfigure,'UserData',handlers);

   % Reset adaptation, t=0
   andrdemo('reset',hfigure);

   % Put figure on desktop
   set(hfigure,'Visible','on');

   drawnow;


case 'creatdata'
   % == Invoke data set creator ============================================
   creatset('normal',2,'andrdemo','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);
      andrdemo('loadsets',hfigure);
      andrdemo('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 apropriate data, if yes loads data.

   h=get(hfigure,'UserData');

   % change path to directory
%%   wres=what('anderson');
%%   cd(wres.path);

   [name,path]=uigetfile('*.mat','Open file');
   if name~=0,
      file.pathname=strcat(path,name);
      file.path=path;
      file.name=name;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合久久精品| 国产精品高潮呻吟| 蜜桃精品视频在线| 国产精品久久久久永久免费观看| 精品久久免费看| 欧美二区三区的天堂| 日韩欧美国产不卡| 色一情一乱一乱一91av| 老司机精品视频一区二区三区| 国产免费成人在线视频| 欧美精品在线视频| 一本色道久久综合亚洲91| 粉嫩av一区二区三区在线播放| 喷水一区二区三区| 中文字幕亚洲欧美在线不卡| 精品久久五月天| 中文字幕巨乱亚洲| 日韩一级视频免费观看在线| av电影一区二区| 精品一区二区影视| 精品一区二区三区在线视频| 国产精品一区二区无线| 寂寞少妇一区二区三区| 国产精品18久久久| 日韩精品一级二级| 日韩视频在线观看一区二区| 日韩码欧中文字| 琪琪久久久久日韩精品| 亚洲婷婷在线视频| 欧美日韩一区不卡| 国内精品伊人久久久久av一坑| 久久久精品一品道一区| 99在线视频精品| 日韩 欧美一区二区三区| 国产人伦精品一区二区| 激情小说欧美图片| 亚洲一区在线观看免费| av在线免费不卡| 亚洲人精品午夜| 欧美日韩国产乱码电影| 99精品久久只有精品| 中文字幕一区二区三区不卡| 中文字幕精品一区二区精品绿巨人 | 久久久久久影视| 91麻豆国产在线观看| 91原创在线视频| 欧美中文字幕不卡| 成人免费视频视频| 黄网站免费久久| 一区二区成人在线视频| 91精品中文字幕一区二区三区| 奇米影视一区二区三区| www国产精品av| 日本精品一区二区三区高清| 国产成人精品在线看| 中文成人综合网| 欧美一区二区三区啪啪| 国产精品白丝jk白祙喷水网站| 国产精品人妖ts系列视频| 亚洲妇熟xx妇色黄| 日韩欧美色电影| aaa欧美日韩| 国产精品99久久久久久久vr| 亚洲黄色小视频| 精品粉嫩超白一线天av| 国产精品国产三级国产有无不卡 | 国产福利精品一区| 欧美精品一区二区久久久| 成人免费视频免费观看| 麻豆免费精品视频| 五月婷婷激情综合| 亚洲小说欧美激情另类| 亚洲午夜电影在线观看| 艳妇臀荡乳欲伦亚洲一区| 有坂深雪av一区二区精品| 国产精品久久免费看| 国产婷婷一区二区| 国产网站一区二区三区| 精品免费国产一区二区三区四区| 欧洲精品一区二区三区在线观看| 成人app在线观看| 国产成人免费av在线| 国产激情偷乱视频一区二区三区| 国产乱理伦片在线观看夜一区| 国产v日产∨综合v精品视频| 麻豆国产精品官网| 国产99久久久久久免费看农村| 波多野结衣在线一区| 成人黄色小视频在线观看| 99精品一区二区| 欧美三级视频在线观看| 欧美一区二区三区免费大片| 欧美zozo另类异族| 久久久久久久久蜜桃| 亚洲精品日日夜夜| 国产一区二区三区国产| 91久久精品一区二区三| 欧美一卡2卡三卡4卡5免费| 国产精品日产欧美久久久久| 一区二区三区欧美激情| 蜜臀av一区二区在线免费观看 | 国产福利精品一区| 在线视频一区二区三| 精品日韩在线观看| 午夜精品一区二区三区三上悠亚| 同产精品九九九| 99久久精品99国产精品| 宅男噜噜噜66一区二区66| 国产日韩精品久久久| 日韩不卡在线观看日韩不卡视频| 成人免费毛片aaaaa**| 精品国产乱码久久久久久免费| 亚洲精品一二三| 成人黄色免费短视频| 精品福利一二区| 视频一区免费在线观看| 欧美视频一区二区三区在线观看| 国产精品―色哟哟| 岛国精品在线播放| 亚洲少妇中出一区| 欧美精品xxxxbbbb| 久久aⅴ国产欧美74aaa| 26uuu国产一区二区三区| 国产69精品久久久久毛片| 国产三级一区二区| 成a人片国产精品| 丝袜美腿亚洲一区二区图片| 91麻豆精品国产91久久久 | 色8久久人人97超碰香蕉987| 日韩美女视频19| 制服丝袜日韩国产| 91最新地址在线播放| 日韩av不卡在线观看| 久久综合99re88久久爱| 国产成人aaa| 亚洲国产精品久久艾草纯爱 | 精品国产区一区| www.99精品| 另类小说图片综合网| 国产精品天天摸av网| 欧美zozozo| 欧美天天综合网| 99久久综合国产精品| 国产美女一区二区三区| 亚洲成人综合在线| 亚洲欧美日韩国产另类专区| 日韩精品影音先锋| 91女人视频在线观看| 成人国产精品免费观看动漫| 极品美女销魂一区二区三区| 亚洲国产成人av网| 亚洲第一成人在线| 同产精品九九九| 亚洲国产中文字幕在线视频综合| 国产亚洲va综合人人澡精品| 在线不卡a资源高清| 欧美群妇大交群中文字幕| jlzzjlzz欧美大全| 国产经典欧美精品| 97se亚洲国产综合自在线| 成人中文字幕在线| 色综合天天综合给合国产| www.激情成人| 8x8x8国产精品| 精品久久久久久久久久久久久久久 | 午夜国产精品影院在线观看| 香港成人在线视频| 一区二区三区日韩欧美| 爽爽淫人综合网网站| 日本不卡的三区四区五区| 奇米四色…亚洲| 成人18视频日本| 色老汉av一区二区三区| 欧美日韩日本视频| 国产三级三级三级精品8ⅰ区| 日本一区二区三级电影在线观看 | 欧美变态凌虐bdsm| 亚洲日本va午夜在线影院| 亚洲成人自拍偷拍| av亚洲精华国产精华| 91精品蜜臀在线一区尤物| 1024成人网色www| 国产一区999| 日韩精品一区二区三区视频播放 | 亚洲精品一区二区三区蜜桃下载| 国产精品视频yy9299一区| 六月婷婷色综合| 3d动漫精品啪啪一区二区竹菊| 一区二区三区欧美激情| 成人小视频在线| 久久精品欧美日韩精品| 久国产精品韩国三级视频| 欧美美女视频在线观看| 午夜精品免费在线观看| 欧美日韩三级一区二区| 午夜精品在线视频一区| 欧美一级生活片| 久久成人18免费观看| 久久综合久久久久88| 国产老女人精品毛片久久|