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

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

?? demgmm3.m

?? Bayes網絡工具箱
?? M
字號:
%DEMGMM3 Demonstrate density modelling with a Gaussian mixture model.%%	Description%	 The problem consists of modelling data generated by a mixture of%	three Gaussians in 2 dimensions with a mixture model using diagonal%	covariance matrices.  The priors are 0.3, 0.5 and 0.2; the centres%	are (2, 3.5), (0, 0) and (0,2); the covariances are all axis aligned%	(0.16, 0.64), (0.25, 1) and the identity matrix. The first figure%	contains a scatter plot of the data.%%	A Gaussian mixture model with three components is trained using EM.%	The parameter vector is printed before training and after training.%	The user should press any key to continue at these points.  The%	parameter vector consists of priors (the column), and centres (given%	as (x, y) pairs as the next two columns).  The diagonal entries of%	the covariance matrices are printed separately.%%	The second figure is a 3 dimensional view of the density function,%	while the third shows the axes of the 1-standard deviation circles%	for the three components of the mixture model.%%	See also%	GMM, GMMINIT, GMMEM, GMMPROB, GMMUNPAK%%	Copyright (c) Christopher M Bishop, Ian T Nabney (1996, 1997)% Generate the datandata = 500;% Fix the seeds for reproducible resultsrandn('state', 42);rand('state', 42);data = randn(ndata, 2);prior = [0.3 0.5 0.2];% Mixture model swaps clusters 1 and 3datap = [0.2 0.5 0.3];datac = [0 2; 0 0; 2 3.5];datacov = [1 1;1 0.25; 0.4*0.4 0.8*0.8];data1 = data(1:prior(1)*ndata,:);data2 = data(prior(1)*ndata+1:(prior(2)+prior(1))*ndata, :);data3 = data((prior(1)+prior(2))*ndata +1:ndata, :);% First cluster has axis aligned variance and centre (2, 3.5)data1(:, 1) = data1(:, 1)*0.4 + 2.0;data1(:, 2) = data1(:, 2)*0.8 + 3.5;% Second cluster has axis aligned variance and centre (0, 0)data2(:,2) = data2(:, 2)*0.5;% Third cluster is at (0,2) with identity matrix for covariancedata3 = data3 + repmat([0 2], prior(3)*ndata, 1);% Put the dataset together againdata = [data1; data2; data3];clcdisp('This demonstration illustrates the use of a Gaussian mixture model')disp('with diagonal covariance matrices to approximate the unconditional')disp('probability density of data in a two-dimensional space.')disp('We begin by generating the data from a mixture of three Gaussians')disp('with axis aligned covariance structure and plotting it.')disp(' ')disp('The first cluster has centre (0, 2).')disp('The second cluster has centre (0, 0).')disp('The third cluster has centre (2, 3.5).')disp(' ')disp('Press any key to continue')pausefh1 = figure;plot(data(:, 1), data(:, 2), 'o')set(gca, 'Box', 'on')% Set up mixture modelncentres = 3;input_dim = 2;mix = gmm(input_dim, ncentres, 'diag');options = foptions;options(14) = 5;	% Just use 5 iterations of k-means in initialisation% Initialise the model parameters from the datamix = gmminit(mix, data, options);% Print out modeldisp('The mixture model has three components and diagonal covariance')disp('matrices.  The model parameters after initialisation using the')disp('k-means algorithm are as follows')disp('    Priors        Centres')disp([mix.priors' mix.centres])disp('Covariance diagonals are')disp(mix.covars)disp('Press any key to continue.')pause% Set up vector of options for EM traineroptions = zeros(1, 18);options(1)  = 1;		% Prints out error values.options(14) = 20;		% Number of iterations.disp('We now train the model using the EM algorithm for 20 iterations.')disp(' ')disp('Press any key to continue.')pause[mix, options, errlog] = gmmem(mix, data, options);% Print out modeldisp(' ')disp('The trained model has priors and centres:')disp('    Priors        Centres')disp([mix.priors' mix.centres])disp('The data generator has priors and centres')disp('    Priors        Centres')disp([datap' datac])disp('Model covariance diagonals are')disp(mix.covars)disp('Data generator covariance diagonals are')disp(datacov)disp('Note the close correspondence between these parameters and those')disp('of the distribution used to generate the data.')disp(' ')disp('Press any key to continue.')pauseclcdisp('We now plot the density given by the mixture model as a surface plot.')disp(' ')disp('Press any key to continue.')pause% Plot the resultx = -4.0:0.2:5.0;y = -4.0:0.2:5.0;[X, Y] = meshgrid(x,y);X = X(:);Y = Y(:);grid = [X Y];Z = gmmprob(mix, grid);Z = reshape(Z, length(x), length(y));c = mesh(x, y, Z);hold ontitle('Surface plot of probability density')hold offdrawnowclcdisp('The final plot shows the centres and widths, given by one standard')disp('deviation, of the three components of the mixture model.  The axes')disp('of the ellipses of constant density are shown.')disp(' ')disp('Press any key to continue.')pause% Try to calculate a sensible position for the second figure, below the firstfig1_pos = get(fh1, 'Position');fig2_pos = fig1_pos;fig2_pos(2) = fig2_pos(2) - fig1_pos(4);fh2 = figure('Position', fig2_pos);h = plot(data(:, 1), data(:, 2), 'bo');hold onaxis('equal');title('Plot of data and covariances')for i = 1:ncentres  v = [1 0];  for j = 1:2    start=mix.centres(i,:)-sqrt(mix.covars(i,:).*v);    endpt=mix.centres(i,:)+sqrt(mix.covars(i,:).*v);    linex = [start(1) endpt(1)];    liney = [start(2) endpt(2)];    line(linex, liney, 'Color', 'k', 'LineWidth', 3)    v = [0 1];  end  % Plot ellipses of one standard deviation  theta = 0:0.02:2*pi;  x = sqrt(mix.covars(i,1))*cos(theta) + mix.centres(i,1);  y = sqrt(mix.covars(i,2))*sin(theta) + mix.centres(i,2);  plot(x, y, 'r-');endhold offdisp('Note how the data cluster positions and widths are captured by')disp('the mixture model.')disp(' ')disp('Press any key to end.')pauseclose(fh1);close(fh2);clear all;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
2014亚洲片线观看视频免费| 91久久精品一区二区三区| 欧美一级欧美一级在线播放| 91激情在线视频| 成人黄色av网站在线| 免费成人小视频| 2024国产精品| 久久精品国内一区二区三区 | 欧美激情自拍偷拍| 一区二区三区四区国产精品| 日韩毛片在线免费观看| 欧美日韩免费观看一区二区三区| 成人高清av在线| 无码av中文一区二区三区桃花岛| 99久久精品国产毛片| 国产在线精品一区二区三区不卡 | 中文字幕在线观看不卡| 国产麻豆成人传媒免费观看| 久久国产免费看| 国产精品一区二区在线观看不卡 | 国产成人三级在线观看| 成人99免费视频| 色8久久精品久久久久久蜜| 在线电影国产精品| 久久综合av免费| 91精品欧美综合在线观看最新 | 欧美色综合影院| 欧美日韩视频专区在线播放| 麻豆中文一区二区| 国产一区 二区 三区一级| 国产视频不卡一区| 日本sm残虐另类| 国产99久久久国产精品潘金网站| 美女久久久精品| 久久久亚洲综合| 国产亚洲一区二区三区在线观看| 精品欧美乱码久久久久久| 粉嫩久久99精品久久久久久夜| 韩国av一区二区三区| 国产精品一区二区视频| 国产午夜亚洲精品不卡| 中文字幕一区二区三区蜜月| 久久久美女毛片| 欧美视频中文字幕| 欧美裸体bbwbbwbbw| 亚洲激情欧美激情| 99riav久久精品riav| 国产精品电影院| 国产欧美一区二区在线| 天天综合网天天综合色| 日日摸夜夜添夜夜添精品视频| 亚洲精品精品亚洲| 欧美日韩免费电影| av网站免费线看精品| 成人免费毛片高清视频| 欧美大片在线观看一区二区| 中文成人av在线| 国产成人亚洲精品青草天美| 欧美不卡一二三| 成年人午夜久久久| 国产suv精品一区二区883| 免费观看一级特黄欧美大片| 亚洲精品一区二区三区香蕉| 一区二区三区四区在线| 日韩丝袜情趣美女图片| 久久99精品久久久久久久久久久久 | 三级久久三级久久| 国产麻豆一精品一av一免费| 久久久久久久综合日本| 91在线观看成人| 国产精品欧美一区喷水| 亚洲激情自拍偷拍| 欧美肥大bbwbbw高潮| 欧洲在线/亚洲| 午夜影院久久久| 色欧美片视频在线观看在线视频| 欧美伊人精品成人久久综合97| 欧美亚洲尤物久久| 青青草原综合久久大伊人精品| 色爱区综合激月婷婷| 欧美日韩极品在线观看一区| 亚洲视频香蕉人妖| 国产精品久久久久影院| 日韩一区二区在线看| 9191国产精品| 精品国精品国产| 久久免费美女视频| 青草av.久久免费一区| 欧美日韩情趣电影| 欧美天天综合网| 成人av电影免费在线播放| 日韩一级免费观看| 国产精品美女久久久久久久久| 成人免费看的视频| 在线免费亚洲电影| 中文字幕在线不卡视频| 国产精品无圣光一区二区| 91丨九色丨蝌蚪丨老版| 国产精品羞羞答答xxdd| 三级成人在线视频| 亚欧色一区w666天堂| 国产精品第四页| 欧洲精品一区二区三区在线观看| 色综合久久久网| 高清在线观看日韩| 极品少妇xxxx精品少妇偷拍| 欧美一级专区免费大片| 国产精品国产馆在线真实露脸 | 亚洲第一福利视频在线| 亚洲激情中文1区| 国产午夜精品福利| 91精品视频网| 国产午夜亚洲精品理论片色戒 | 欧美电影免费观看完整版| 精品一区二区三区在线播放| 中文字幕字幕中文在线中不卡视频| 国产日产精品1区| 91在线视频网址| 久久精品欧美一区二区三区麻豆| 国产精品每日更新| 天堂va蜜桃一区二区三区漫画版| 欧美日韩亚洲综合一区二区三区| 91免费版pro下载短视频| 欧美日韩国产大片| 国产高清成人在线| 午夜精品福利一区二区三区av| 首页国产丝袜综合| 欧美色倩网站大全免费| 777欧美精品| 欧美成人r级一区二区三区| 日韩精品亚洲专区| 成人a区在线观看| 国产在线精品国自产拍免费| 国产伦精品一区二区三区免费迷 | 精品少妇一区二区三区在线播放| 国产日韩欧美在线一区| 亚洲天堂2014| 色综合视频一区二区三区高清| 99精品视频在线观看| 欧美α欧美αv大片| 91黄色在线观看| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 亚洲美女在线国产| 亚洲精品一线二线三线| 成人精品在线视频观看| 69久久夜色精品国产69蝌蚪网| 欧洲亚洲国产日韩| 丁香婷婷综合网| 综合电影一区二区三区 | 色94色欧美sute亚洲线路一久| 韩国一区二区三区| 免费在线视频一区| 激情六月婷婷久久| 国产一区二区三区免费播放| 日本va欧美va精品发布| 久久精品国产999大香线蕉| 亚洲第一av色| 日产国产高清一区二区三区| 最新成人av在线| 亚洲色图欧美激情| 亚洲欧美色综合| 久久精品一区蜜桃臀影院| 亚洲精品视频免费观看| 亚洲综合网站在线观看| 国产欧美一区二区在线| 免费av成人在线| 国产乱码精品一区二区三区av| 日产欧产美韩系列久久99| 一本色道久久综合亚洲91| 欧美午夜在线观看| 92精品国产成人观看免费 | 久久这里只精品最新地址| 欧美变态口味重另类| 久久伊99综合婷婷久久伊| 成人欧美一区二区三区视频网页 | 国产精品毛片无遮挡高清| 欧美极品美女视频| 欧美一区二区三区小说| 9191成人精品久久| 欧美视频在线一区| 日韩国产欧美在线观看| 午夜精品一区二区三区免费视频| 亚洲欧洲www| 欧美一区二区三区免费观看视频| 精品福利av导航| 国产精品网站在线播放| 国产欧美综合色| 欧美精品成人一区二区三区四区| 911精品国产一区二区在线| 国产精品高潮呻吟| 亚洲无人区一区| 狠狠色综合播放一区二区| 精品影院一区二区久久久| 欧美性大战xxxxx久久久| 欧美成人三级在线| 亚洲精品中文在线观看| 99这里都是精品| 欧美成人伊人久久综合网| 亚洲欧洲精品成人久久奇米网| 亚洲综合av网|