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

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

?? som_norm_variable.m

?? it is matlab code , som(slef organizing map) tool for matlab
?? M
?? 第 1 頁 / 共 2 頁
字號:
  % initialize  if strcmp(operation,'init') | ...     (strcmp(operation,'do') & strcmp(sNorm(i).status,'uninit')),     % case method = 'hist'    if strcmp(sNorm(i).method,'hist'),       inds = find(~isnan(x) & ~isinf(x));      if length(unique(x(inds)))>20, sNorm(i).method = 'histC';       else sNorm{i}.method = 'histD'; end    end    switch(sNorm(i).method),     case 'var',   params = norm_variance_init(x);    case 'range', params = norm_scale01_init(x);    case 'log',   params = norm_log_init(x);    case 'logistic', params = norm_logistic_init(x);    case 'histD', params = norm_histeqD_init(x);    case 'histC', params = norm_histeqC_init(x);    case 'eval',  params = sNorm(i).params;     otherwise,       error(['Unrecognized method: ' sNorm(i).method]);     end    sNorm(i).params = params;    sNorm(i).status = 'undone';  end  % do / undo  if strcmp(operation,'do'),     switch(sNorm(i).method),     case 'var',   x = norm_scale_do(x,sNorm(i).params);    case 'range', x = norm_scale_do(x,sNorm(i).params);    case 'log',   x = norm_log_do(x,sNorm(i).params);    case 'logistic', x = norm_logistic_do(x,sNorm(i).params);    case 'histD', x = norm_histeqD_do(x,sNorm(i).params);    case 'histC', x = norm_histeqC_do(x,sNorm(i).params);    case 'eval',  x = norm_eval_do(x,sNorm(i).params);    otherwise,       error(['Unrecognized method: ' sNorm(i).method]);    end    sNorm(i).status = 'done';  elseif strcmp(operation,'undo'),     if strcmp(sNorm(i).status,'uninit'),       warning('Could not undo: uninitialized normalization struct.')      break;    end    switch(sNorm(i).method),     case 'var',   x = norm_scale_undo(x,sNorm(i).params);    case 'range', x = norm_scale_undo(x,sNorm(i).params);    case 'log',   x = norm_log_undo(x,sNorm(i).params);        case 'logistic', x = norm_logistic_undo(x,sNorm(i).params);    case 'histD', x = norm_histeqD_undo(x,sNorm(i).params);    case 'histC', x = norm_histeqC_undo(x,sNorm(i).params);    case 'eval',  x = norm_eval_undo(x,sNorm(i).params);    otherwise,       error(['Unrecognized method: ' sNorm(i).method]);    end    sNorm(i).status = 'undone';  elseif ~strcmp(operation,'init'),    error(['Unrecognized operation: ' operation])  endend  return;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% subfunctions% linear scalingfunction p = norm_variance_init(x)  inds = find(~isnan(x) & isfinite(x));  p = [mean(x(inds)), std(x(inds))];  if p(2) == 0, p(2) = 1; end  %end of norm_variance_initfunction p = norm_scale01_init(x)  inds = find(~isnan(x) & isfinite(x));  mi = min(x(inds));   ma = max(x(inds));  if mi == ma, p = [mi, 1]; else p = [mi, ma-mi]; end  %end of norm_scale01_init  function x = norm_scale_do(x,p)  x = (x - p(1)) / p(2);  % end of norm_scale_dofunction x = norm_scale_undo(x,p)  x = x * p(2) + p(1);  % end of norm_scale_undo% logarithmfunction p = norm_log_init(x)  inds = find(~isnan(x) & isfinite(x));  p = min(x(inds));  % end of norm_log_initfunction x = norm_log_do(x,p)  x = log(x - p +1);   % if any(~isreal(x)), ok = 0; end  % end of norm_log_do function x = norm_log_undo(x,p)  x = exp(x) -1 + p;   % end of norm_log_undo % logisticfunction p = norm_logistic_init(x)  inds = find(~isnan(x) & isfinite(x));  p = [mean(x(inds)), std(x(inds))];  if p(2)==0, p(2) = 1; end  % end of norm_logistic_initfunction x = norm_logistic_do(x,p)  x = (x-p(1))/p(2);  x = 1./(1+exp(-x));  % end of norm_logistic_dofunction x = norm_logistic_undo(x,p)  x = log(x./(1-x));  x = x*p(2)+p(1);  % end of norm_logistic_undo% histogram equalization for discrete valuesfunction p = norm_histeqD_init(x)  inds = find(~isnan(x) & ~isinf(x));  p = unique(x(inds));  % end of norm_histeqD_initfunction x = norm_histeqD_do(x,p)  bins = length(p);  inds = find(~isnan(x) & ~isinf(x))';  for i = inds,     [dummy ind] = min(abs(x(i) - p));    % data item closer to the left-hand bin wall is indexed after RH wall    if x(i) > p(ind) & ind < bins,       x(i) = ind + 1;      else       x(i) = ind;    end  end  x = (x-1)/(bins-1); % normalization between [0,1]  % end of norm_histeqD_do function x = norm_histeqD_undo(x,p)  bins = length(p);  x = round(x*(bins-1)+1);  inds = find(~isnan(x) & ~isinf(x));  x(inds) = p(x(inds));  % end of norm_histeqD_undo% histogram equalization with partially linear functionsfunction p = norm_histeqC_init(x)  % investigate x  inds = find(~isnan(x) & ~isinf(x));  samples = length(inds);  xs = unique(x(inds));  mi = xs(1);  ma = xs(end);  % decide number of limits  lims = ceil(sqrt(length(xs))); % 2->2,100->10,1000->32,10000->100  % decide limits  if lims==1,         p = [mi, mi+1];    lims = 2;   elseif lims==2,     p = [mi, ma];  else    p = zeros(lims,1);       p(1) = mi;     p(end) = ma;    binsize = zeros(lims-1,1); b = 1; avebinsize = samples/(lims-1);    for i=1:(length(xs)-1),       binsize(b) = binsize(b) + sum(x==xs(i));       if binsize(b) >= avebinsize,         b = b + 1;        p(b) = (xs(i)+xs(i+1))/2;      end      if b==(lims-1),         binsize(b) = samples-sum(binsize); break;      else        avebinsize = (samples-sum(binsize))/(lims-1-b);      end    end  end  % end of norm_histeqC_initfunction x = norm_histeqC_do(x,p)  xnew = x;   lims = length(p);  % handle values below minimum  r = p(2)-p(1);   inds = find(x<=p(1) & isfinite(x));   if any(inds), xnew(inds) = 0-(p(1)-x(inds))/r; end   % handle values above maximum  r = p(end)-p(end-1);   inds = find(x>p(end) & isfinite(x));   if any(inds), xnew(inds) = lims-1+(x(inds)-p(end))/r; end  % handle all other values  for i=1:(lims-1),     r0 = p(i); r1 = p(i+1); r = r1-r0;     inds = find(x>r0 & x<=r1);     if any(inds), xnew(inds) = i-1+(x(inds)-r0)/r; end  end  % scale so that minimum and maximum correspond to 0 and 1  x = xnew/(lims-1);  % end of norm_histeqC_dofunction x = norm_histeqC_undo(x,p)  xnew = x;   lims = length(p);   % scale so that 0 and 1 correspond to minimum and maximum  x = x*(lims-1);  % handle values below minimum  r = p(2)-p(1);   inds = find(x<=0 & isfinite(x));   if any(inds), xnew(inds) = x(inds)*r + p(1); end   % handle values above maximum  r = p(end)-p(end-1);   inds = find(x>lims-1 & isfinite(x));   if any(inds), xnew(inds) = (x(inds)-(lims-1))*r+p(end); end  % handle all other values  for i=1:(lims-1),     r0 = p(i); r1 = p(i+1); r = r1-r0;     inds = find(x>i-1 & x<=i);     if any(inds), xnew(inds) = (x(inds)-(i-1))*r + r0; end  end  x = xnew;  % end of norm_histeqC_undo% evalfunction p = norm_eval_init(method)  p = method;  %end of norm_eval_initfunction x = norm_eval_do(x,p)  x_tmp = eval(p{1});  if size(x_tmp,1)>=1 & size(x,1)>=1 & ...     size(x_tmp,2)==1 & size(x,2)==1,    x = x_tmp;  end  %end of norm_eval_dofunction x = norm_eval_undo(x,p)  x_tmp = eval(p{2});  if size(x_tmp,1)>=1 & size(x,1)>=1 & ...     size(x_tmp,2)==1 & size(x,2)==1,    x = x_tmp;  end  %end of norm_eval_undo%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品1区2区| 天天色天天操综合| 午夜成人免费电影| 国产成人免费视频网站高清观看视频| 91在线免费视频观看| 欧美一区日韩一区| 亚洲人成7777| 久久超碰97人人做人人爱| 在线观看免费亚洲| 国产调教视频一区| 狠狠色丁香久久婷婷综合丁香| 色婷婷国产精品综合在线观看| 久久久欧美精品sm网站| 天堂成人免费av电影一区| 成人福利视频在线看| 久久久99精品久久| 五月天一区二区| 91黄色免费看| 国产精品美女久久久久久| 亚洲成va人在线观看| 91麻豆swag| 中文字幕不卡在线| 国产麻豆视频一区二区| 欧美日本一道本| 亚洲图片欧美色图| 91在线观看免费视频| 欧美成va人片在线观看| 亚洲国产精品视频| 91啦中文在线观看| 中文字幕欧美激情| 国产乱码字幕精品高清av| 欧美精品自拍偷拍| 亚洲成人免费视频| 色呦呦国产精品| 一区二区在线观看免费| 成人动漫一区二区在线| 中文字幕精品一区二区精品绿巨人| 久久机这里只有精品| 日韩一级完整毛片| 免费一区二区视频| 欧美性受xxxx| 日韩精品久久久久久| 欧美午夜精品免费| 日韩精品电影在线观看| 欧美剧情片在线观看| 日韩精品三区四区| 6080日韩午夜伦伦午夜伦| 日本不卡在线视频| 337p亚洲精品色噜噜狠狠| 亚洲人精品一区| 欧美影片第一页| 樱花影视一区二区| 欧美日韩国产欧美日美国产精品| 亚洲中国最大av网站| 欧美日韩黄视频| 亚洲成人av在线电影| 91精品福利在线一区二区三区 | 成人激情小说乱人伦| 久久精品亚洲一区二区三区浴池| 国产成人精品免费| 中文字幕不卡的av| 91免费看`日韩一区二区| 亚洲激情图片qvod| 91丨porny丨最新| 午夜欧美一区二区三区在线播放| 欧美色图激情小说| 麻豆视频观看网址久久| 久久综合狠狠综合| 91麻豆福利精品推荐| 亚洲狠狠丁香婷婷综合久久久| 欧美精品vⅰdeose4hd| 另类小说图片综合网| 精品少妇一区二区三区在线视频| 丰满少妇在线播放bd日韩电影| 欧美极品xxx| 欧美性极品少妇| 免费成人美女在线观看.| 国产无遮挡一区二区三区毛片日本 | 欧美日韩国产高清一区二区| 奇米影视7777精品一区二区| 日韩精品一区二| 91在线无精精品入口| 亚洲图片欧美视频| 久久久精品国产免费观看同学| 99热精品一区二区| 亚洲国产精品一区二区www| 日韩精品最新网址| 波多野结衣91| 免费观看久久久4p| 日本一区二区三区dvd视频在线| 在线免费观看视频一区| 美女在线一区二区| 亚洲欧美在线视频| 欧美日韩高清影院| 成人动漫中文字幕| 天天色图综合网| 国产精品国产三级国产普通话蜜臀| 91精品办公室少妇高潮对白| 亚洲成人黄色小说| 国产精品九色蝌蚪自拍| 欧美亚洲国产一区二区三区va| 国产精品自拍在线| 亚洲午夜一区二区| 中文字幕av免费专区久久| 欧美日韩久久一区二区| 成人激情小说网站| 日韩国产欧美三级| 中文字幕一区二区三区精华液| 欧美精品一二三区| av电影一区二区| 美女视频网站黄色亚洲| 久久理论电影网| 88在线观看91蜜桃国自产| 国产在线乱码一区二区三区| 香蕉影视欧美成人| 国产免费成人在线视频| 日韩一级完整毛片| 91久久精品一区二区| 国产馆精品极品| 亚洲成人精品影院| 1区2区3区精品视频| 欧美成人欧美edvon| 欧美日韩国产高清一区二区| 丁香婷婷综合网| 亚洲国产视频直播| ...xxx性欧美| www激情久久| 9191久久久久久久久久久| 国产成人激情av| 天天免费综合色| 国产精品久久久久久久第一福利| 日韩一区二区三区电影| 欧日韩精品视频| voyeur盗摄精品| 精品一区二区三区免费毛片爱| 伊人开心综合网| 亚洲欧美另类图片小说| 久久精品水蜜桃av综合天堂| 欧美日韩一区久久| 色激情天天射综合网| 国产专区欧美精品| 国产原创一区二区三区| 亚洲影视在线观看| 亚洲夂夂婷婷色拍ww47| 中文字幕在线不卡| 中文一区二区完整视频在线观看| 日韩欧美区一区二| 精品人在线二区三区| 欧美妇女性影城| 欧美一区二区性放荡片| 欧美无乱码久久久免费午夜一区 | 一区二区三区四区高清精品免费观看| 久久久久高清精品| 国产欧美日韩精品一区| 精品国精品国产| 久久免费国产精品| ww亚洲ww在线观看国产| 久久美女高清视频| 26uuu亚洲综合色| 日韩欧美成人午夜| 日韩欧美不卡一区| 欧美v亚洲v综合ⅴ国产v| 欧美一区二区美女| 欧美一个色资源| 日韩女同互慰一区二区| 91精品国产高清一区二区三区 | 亚洲国产毛片aaaaa无费看| 精品成人在线观看| 精品国产自在久精品国产| 久久久久久99精品| 国产日韩欧美激情| 国产精品久久久久久妇女6080| 欧美国产日韩一二三区| 亚洲欧洲成人精品av97| 亚洲女与黑人做爰| 三级精品在线观看| 日韩高清国产一区在线| 久久av资源网| 国产精品一区专区| av网站一区二区三区| 色香蕉成人二区免费| 欧美丰满一区二区免费视频| 欧美一级xxx| 中文乱码免费一区二区| 中文字幕一区免费在线观看| 亚洲精品日韩综合观看成人91| 一区二区三区久久| 蜜乳av一区二区| 国产精品一区二区不卡| 91原创在线视频| 欧美亚洲高清一区| 精品国产sm最大网站| 国产免费观看久久| 亚洲国产精品自拍| 蜜臀久久久久久久| 成人福利视频网站| 成人18视频在线播放| 666欧美在线视频| 欧美一区二区播放| 国产精品久久国产精麻豆99网站|