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

📄 getghelper.m

📁 Continuous Profile Models (CPM) Matlab Toolbox.
💻 M
字号:
function G = getGhelper(G)G.numStates  = G.numScales*G.numTaus;if (G.oneScaleOnly)  S=1;else  S = 0.90;  % percent probability of staying in the same scale stateendfor cc=1:G.numClass  G.S(cc)=S;endG.stMap = reshape([1:G.numStates]',G.numScales,G.numTaus);%% Mapping from state to tau and scaleG.stateToScaleTau = zeros(G.numStates,2);for st=1:G.numStates  [temp1,temp2]= find(G.stMap==st);  G.stateToScaleTau(st,:) = [temp1, temp2];endG.prec = getAllStateTransIn(G);G.pseudoT = 5*ones(1,G.maxTimeSteps);if (G.oneScaleOnly)  G.pseudoS = zeros(1,2);else  G.pseudoS = 5*ones(1,2);endG.timeJump = getTimeJump(G);G.scaleJump = getScaleJump(G);temp=2.^G.scales(G.stateToScaleTau(:,1));G.traceLogConstant = repmat(temp(:),[1 G.numBins]);G.stateLogPrior = getStateLogPrior(G);G.statePrior = exp(G.stateLogPrior);

⌨️ 快捷键说明

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