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

📄 getstatetransin.m

📁 Continuous Profile Models (CPM) Matlab Toolbox.
💻 M
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function [precStates  precTaus precScaleInd] = ...%    getStateTransIn(myScaleInd,myTau,G);%% Given a state, returns the list of states that can% transition to this state (and corresponding taus% and scales, so that we can compute the factored probability.% % G is a structure containing all the global variables%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function [precStates, precTaus, precScaleInd] = getStateTransIn(myScaleInd,myTau,G)  maxTau = myTau-1;  minTau = max(1,(myTau-G.maxTimeSteps));  allowedTaus = maxTau:-1:minTau;  minScale = max(1,(myScaleInd-G.maxScaleSteps));  maxScale = min(G.numScales,(myScaleInd+G.maxScaleSteps));  allowedScaleInd = minScale:maxScale;     precStates = G.stMap(allowedScaleInd,allowedTaus);  precStates = precStates(:);  temp = G.stateToScaleTau(precStates,:);  precScaleInd = temp(:,1);  precTaus = temp(:,2);  %[precStates,precTaus,precScaleInd] = ...  %  scaleTauToState(allowedScaleInd,allowedTaus,G);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Debug%if (0)%  state%  [myTau,myScaleInd]%  display(['maxTau:' num2str(maxTau), '  minTau:' num2str(minTau)]);%  allowedTaus%  allowedScaleInd%  precStates%end

⌨️ 快捷键说明

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