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

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

?? ganders.m

?? Edge detection with svm (doc and matlabcode)
?? M
字號:
function [alpha,theta,solution,minr,t,maxerr]=...   ganders(MI,SG,J,tmax,stopCond,t,alpha,theta)
% GANDERS algorithm solving Generalized Anderson's task.% [alpha,theta,solution,minr,t,maxerr]=...%    ganders(MI,SG,J,tmax,rdelta,t,alpha,theta)
%% GANDERS is implementation of the general algorithm framework that finds %   optimal solution of the Generalized Anderson's task (GAT). %%   The GAT solves problem of finding a separationg hyperplane %   (alpha'*x = theta) between two classes such that found solution minimizes %   the probability of bad classification. Both classes are described in term %   of the conditional probability density functions p(x|k), where x is %   observation and k is class label (1 for the first and 2 for the second %   class). The p(x|k) for both the classes has normal distribution but its %   genuine parameters are not know only finite set of possible parameters %   is known. %%   The algorithms works iteratively until the change of the solution quality %   in two consequential steps is less then given limit rdelta %   (radius of the smallest ellipsoid) or until the number of steps, %   the algorithm performed, exceeds given limit tmax.%% Input:% (K is number of input parameters, N is dimension of feature space.)%% GANDERS(MI,SIGMA,J,tmax,rdelta)%   MI [NxK] contains K column vectors of mean values MI=[mi_1,mi_2...mi_K],%      where mi_i is i-th column vector N-by-1. %   SIGMA [N,(K*N)] contains K covariance matrices,%      SIGMA=[sigma_1,sigma_2,...sigma_K], where sigma_i is i-th matrix N-by-N.
%   J [1xK] is vector of class labels J=[label_1,label_2,..,class_K], where
%      label_i is an integer 1 or 2 according to which class the pair 
%      {mi_i,sigma_i} describes.
%   tmax [1x1] is maximal number of steps of algorithm. Default is inf 
%      (it exclude this stop condition).
%   rdelta [1x1] is positive real number (including 0 that exclude this 
%      stop condition) which determines stop condition - it works until
%      the change of solution quality (radius of the smallest ellipsoid)
%      is less than rdelta the algorithm exits.
%
% GANDERS(MI,SIGMA,J,tmax,rdelta,t,alpha,theta) begins from state given by
%   t [1x1] begin step number.
%   alpha [Nx1], theta [1x1] are state variables of the algorithm.
%
% Returns:
%   alpha [Nx1] is normal vector of found separating hyperplane.
%   theta [1x1] is threshold of separating hyperplane (alpha'*x=theta).
%   solution [1x1] is equal to -1 if solution does not exist,
%      is equal to 0 if solution is not found,
%      is equal to 1 if is found.
%   minr [1x1] is radius of the smallest ellipsoid correseponding to the %      quality of found solution.%   t [1x1] is number of steps the algorithm performed.%   maxerr [1x1] is upper bound of probabillity of bad classification.%% See also OANDERS, EANDERS, GGANDERS, 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, 6.5.2000% Modifications% 30-August-2001, V.Franc, mistake repared, dalpha = dalpha/norm(dalpha) removed% 24. 6.00 V. Hlavac, comments polished.MINEPS_TMAX=1e2;    % max # of iter. in epsilon minimization% default arguments settingif nargin < 3,   error('Not enought input arguments.');endif nargin < 4,   tmax = inf;end
%%% Gets stop conditionif nargin < 5,   stopCond = 0;endif length(stopCond)==2,  stopT=stopCond(2);else  stopT=1;enddeltaR=stopCond(1);%##debugcond=2;stopT=100;if nargin < 6,   t=0;end% perform transformation
if nargin < 8,   [alpha,MI,SG]=ctransf(0,0,MI,J,SG);else   [alpha,MI,SG]=ctransf(alpha,theta,MI,J,SG);end% get dimension N and number of distributionsN=size(MI,1);K=size(MI,2);% STEP (1)if t==0,   [alpha,alphaexists]=csvm(MI);
   % if alpha don`t exist than error can not be less that 50%
   if alphaexists==1,
      t=1;
   else
      % no feasible solution can be found, so that exit algorithm
      alpha=zeros(N,1); theta=0; minr=0;
      solution=-1;
      return;
   end
   tmax=tmax-1;
end

% STEP (2.1)
% find the minimal radius of all the  ellipsoids
%[minrs,minri]=min( (alpha'*MI)./sqrt( reshape(alpha'*SG,N,K)'*alpha )' );
%minr=minrs(1);rka=(alpha'*MI)./sqrt( reshape(alpha'*SG,N,K)'*alpha )';[minr,inx]=min(rka);minri=find((rka-0.0001) <= minr);lastminr=minr;queueMinR=[];  % queue of the best solutions, stopT steps backwardt0=0;   % counter of performed iterations in this call of the function% t, is the whole number of iterations, i.e. t(end_fce)=t(begin_fce)+t0;% iterations cycle
solution=0;
while solution==0 & tmax > 0 & t ~= 0,   tmax = tmax-1;   % STEP (2.2)   % compute contact points and negative error function derivation   Y0=zeros(N,length(minri));   for i=1:length(minri),      j=minri(i);     % computes point of contact
      x0=MI(:,j)-(( alpha'*MI(:,j) )/...               (alpha'*SG(:,(j-1)*N+1:j*N)*alpha))*SG(:,(j-1)*N+1:j*N)*alpha;      Y0(:,i) = x0/sqrt( alpha'*SG(:,(j-1)*N+1:N*j)*alpha );   end   % find direction delta_alpha in which error decreases   [dalpha,dalphaexists]=csvm(Y0); %   dalpha=dalpha/norm(dalpha);      if dalphaexists == 1, %      alpha=alpha/norm(alpha);%      dalpha=dalpha/norm(dalpha);           % STEP (3)      % find t=arg min max epsilon(alpha+t*dalpha, MI, SG )
       alpha=mineps(MI,SG,alpha,dalpha,MINEPS_TMAX,0);%      alpha=minepsvl(MI,SG,alpha,dalpha,MINEPS_TMAX,0);%      alpha=minepsrt(MI,SG,alpha,dalpha)
;      % find the minimal radius of all the  ellipsoids%      [minrs,minri]=min( (alpha'*MI)./sqrt( reshape(alpha'*SG,N,K)'*alpha )' );%      minr=minrs(1);
%      minri      rka=(alpha'*MI)./sqrt( reshape(alpha'*SG,N,K)'*alpha )';      [minr,inx]=min(rka);      minri=find((rka-0.0001) <= minr);%      minrinx=minri   end
   %% incereases iteration counter   t=t+1;   t0=t0+1;   %%%% Stop criterion %%%%%%%%%%%%%%%%   if dalphaexists == 0,      solution=1;      t=t-1;   else % if cond == 1,          %%% the second stop condition      if t0 > stopT,        if (minr-queueMinR(1)) < deltaR,	     solution = 1;         t=t-1;        end        % a queue of the best solutions        queueMinR=[queueMinR(2:end),minr];        else        queueMinR=[queueMinR,minr];      end   end   % store old value of minr   lastminr=minr;end% inverse transformation[alpha,theta]=ictransf(alpha);% upper bound of prob. of bad classificationmaxerr=1-cdf('norm',minr,0,1);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
曰韩精品一区二区| 亚洲美女淫视频| 91国产成人在线| 日本不卡123| 亚洲欧美一区二区不卡| 精品国产伦一区二区三区观看方式 | 日韩高清不卡在线| 欧美激情综合网| 欧美一级xxx| 日本高清不卡aⅴ免费网站| 理论片日本一区| 亚洲成av人片一区二区三区| 中文字幕第一区第二区| 日韩视频在线你懂得| 色综合中文字幕国产| 国产一区二区看久久| 青青青伊人色综合久久| 亚洲一区二区三区自拍| 国产精品乱人伦| 久久免费精品国产久精品久久久久| 欧美亚洲另类激情小说| 91影视在线播放| youjizz国产精品| 国产高清成人在线| 国产一区二区免费看| 精一区二区三区| 日本中文一区二区三区| 亚洲国产日韩a在线播放性色| 亚洲天堂成人在线观看| 国产精品传媒入口麻豆| 国产精品视频免费看| 国产欧美综合色| 国产日本欧美一区二区| 久久综合色鬼综合色| 欧美一级片在线| 欧美一级夜夜爽| 日韩一区二区三区三四区视频在线观看 | 青椒成人免费视频| 性久久久久久久| 日日骚欧美日韩| 免费人成黄页网站在线一区二区| 日本不卡一区二区三区| 日本一区中文字幕| 青青草91视频| 国产乱人伦精品一区二区在线观看| 久久成人久久爱| 国产一区二区三区久久悠悠色av| 国产激情一区二区三区| 成人污视频在线观看| 岛国一区二区在线观看| 99这里都是精品| 在线观看免费亚洲| 6080亚洲精品一区二区| 日韩一区二区三区高清免费看看| 日韩免费性生活视频播放| 久久久久久一二三区| 日韩毛片高清在线播放| 有坂深雪av一区二区精品| 亚洲成人手机在线| 国产精品色在线| 亚洲色图在线播放| 亚洲综合无码一区二区| 亚洲成人动漫精品| 日韩电影在线免费观看| 亚洲午夜免费电影| 亚洲国产日韩在线一区模特 | 免费在线欧美视频| 久久福利视频一区二区| 久久精品国产网站| 国产精品亚洲专一区二区三区| 成人在线视频一区二区| 成人avav影音| 欧洲一区在线电影| 欧美三片在线视频观看| 久久一日本道色综合| 国产精品欧美久久久久无广告 | 久久网站最新地址| 中文字幕免费不卡| 亚洲狠狠丁香婷婷综合久久久| 亚洲欧美偷拍三级| 狠狠色丁香婷婷综合| 91小视频在线| 91麻豆精品国产无毒不卡在线观看| 精品久久久久av影院| 国产精品丝袜在线| 亚洲电影你懂得| 韩国精品一区二区| 99国产欧美另类久久久精品| 欧美猛男超大videosgay| 久久综合色之久久综合| 综合激情网...| 蜜桃一区二区三区在线| 成人看片黄a免费看在线| 欧美色精品天天在线观看视频| 日韩免费电影一区| 成人欧美一区二区三区黑人麻豆 | 亚洲大片精品永久免费| 青青草国产精品97视觉盛宴| 成人午夜av在线| 欧美电影在线免费观看| 国产日韩亚洲欧美综合| 午夜欧美视频在线观看| 国产成人精品aa毛片| 在线观看91精品国产麻豆| 亚洲国产精华液网站w| 亚洲欧美国产三级| 国模无码大尺度一区二区三区| 91国偷自产一区二区三区观看| 91精品国产高清一区二区三区| 国产精品第13页| 韩国精品一区二区| 色综合中文字幕国产| 91精品婷婷国产综合久久性色| 亚洲国产精品99久久久久久久久| 性久久久久久久| 欧美视频一区二区三区在线观看| 久久精品夜夜夜夜久久| 亚洲第一电影网| 成人av网在线| 精品国产一区二区三区不卡 | 香港成人在线视频| 97超碰欧美中文字幕| 精品动漫一区二区三区在线观看| 亚洲猫色日本管| youjizz久久| 亚洲精品一区二区三区蜜桃下载| 日韩黄色片在线观看| 一本色道久久综合狠狠躁的推荐| 久久久精品影视| 久久精品噜噜噜成人88aⅴ | 国产日产精品1区| 久久99久久久欧美国产| 欧美精品久久天天躁| 1024成人网| 国产精品自在欧美一区| 欧美精品一区二区三区一线天视频| 亚洲国产wwwccc36天堂| 色综合av在线| 亚洲黄色小视频| 色婷婷狠狠综合| 亚洲视频中文字幕| 欧美在线制服丝袜| 一区二区三区日韩欧美| 99久久99久久精品免费观看| 中日韩av电影| 成人国产在线观看| 国产精品二三区| 成人午夜激情在线| 一区二区三区四区在线播放| 一本色道久久综合亚洲精品按摩| 亚洲色图.com| 日本黄色一区二区| 亚洲综合图片区| 欧美性大战久久久| 亚洲福利一二三区| 日韩欧美国产系列| 韩国三级电影一区二区| 久久一夜天堂av一区二区三区 | 国产白丝精品91爽爽久久| 国产亚洲欧美一级| 成人激情图片网| 国产精品国产三级国产aⅴ无密码| 91豆麻精品91久久久久久| 一区二区三区免费| 欧美日韩国产123区| 日本aⅴ精品一区二区三区| 日韩午夜三级在线| 国产一区二区伦理| 中文字幕在线观看不卡| 99久久99久久精品免费看蜜桃| 天天影视涩香欲综合网| 日韩精品一区在线观看| 国产毛片精品国产一区二区三区| 欧美激情一区二区三区蜜桃视频| av电影在线不卡| 亚洲第一主播视频| 精品国产乱子伦一区| 日韩国产一二三区| 国产精品久99| 欧美性感一区二区三区| 久久精品99国产精品日本| 国产香蕉久久精品综合网| 一本大道久久a久久精品综合| 亚洲高清免费视频| 日韩欧美电影一区| 日本韩国视频一区二区| 免费在线看一区| 国产精品成人免费| 91麻豆精品国产91久久久使用方法| 韩国v欧美v日本v亚洲v| 亚洲欧美视频一区| 国产亚洲欧美色| 欧美日韩视频第一区| 国内久久精品视频| 亚洲精品水蜜桃| 精品免费日韩av| 色综合久久精品| 另类小说图片综合网| 亚洲精品视频在线观看网站| 日韩精品中文字幕在线一区|