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

📄 bnnextstate.m

📁 Speaker Verification Toolbox
💻 M
字号:
function y = bnNextState_new(x,F,varF,nv)

% y = bnNextState(x,F,varF,nv) - one step of a Boolean Network
% This function performs one step of a BN. The current state is x (binary
% vector of 1 x n, where n is # of genes). The other parameters are the
% same as in bnA. Note: perturbation is not supported here.

% Ilya Shmulevich; Aug. 28, 2002
% Modified May 12, 2003 by HL.

n = length(x); % number of genes
y = zeros(size(x)); % initialize next state

b = 2.^[size(varF,1)-1:-1:0]';
for i=1:n
    if nv(i) ~= 0
        y(i) = F(x(varF(1:nv(i),i))*b(end-nv(i)+1:end)+1,i);
    else
        y(i) = x(i);
    end
end

⌨️ 快捷键说明

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