⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pbnstationary.m

📁 Speaker Verification Toolbox
💻 M
字号:
function pmf = pbnStationary(Y,Yp,p)

% pmf = pbnStationary(Y,Yp,p) - empirical stationary distribution
% This function takes the history Y produced either by pbnRun or pbnTemper
% and produces an empirical stationary distribution, by counting occurences
% of each state There are two more optional input variables: Yp and p Yp is
% produced along with Y by pbnTemper() and contains the history of the
% temperatures p is the desired temperature to extract from Y. Example:
% pbnStationary(Y,Yp,0.2) will extract only those states from Y which
% correspond to temperature 0.2

% Ilya Shmulevich; Aug. 22, 2001

n = size(Y,2);										% number of genes

if nargin == 3
   Y = Y(find(Yp == p),:);						% extract those states corresponding to p
end

p = 2.^[n-1:-1:0];								% convert to decimal
pmf = hist(Y * p',2^n);							% and create histogram
pmf = pmf / sum(pmf);							% then normalize

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -