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

📄 reviveg.m

📁 Continuous Profile Models (CPM) Matlab Toolbox.
💻 M
字号:
% function revivedG = reviveG(G,UPDATE_T,UPDATE_S)%% takes a stripped down G, and generates the parts% that are missing (i.e. the huge matrixes that are% extremely memory intensive)%% If you won't be learning the time and/or scale state% transitions with this data structure, then set UPDATE_T% (for time), and UPDATE_S (for scale) to have the value% 0 so that the huge matrixes associated with these updates% are not generated%% see also stripGfunction G = reviveG(oldG,UPDATE_T,UPDATE_S)G=oldG;G.stMap=reshape([1:G.numStates]',G.numScales,G.numTaus);G.stateToScaleTau = zeros(G.numStates,2);for st=1:G.numStates  [temp1,temp2]= find(G.stMap==st);  G.stateToScaleTau(st,:) = [temp1, temp2];endif UPDATE_T  G.timeJump = getTimeJump(G);endif UPDATE_S  G.scaleJump = getScaleJump(G);endtemp=2.^G.scales(G.stateToScaleTau(:,1));G.traceLogConstant = repmat(temp(:),[1 G.numBins]);%oneScaleOnly=(all(G.S==1));G.stateLogPrior = getStateLogPrior(G,G.oneScaleOnly);G.statePrior = exp(G.stateLogPrior);G.scaleTransLog = getLogScaleTrans(G); G.timeTransLog  = getLogTimeTrans(G);G.prec = getAllStateTransIn(G);G.stateTransLog = getStateTransLog(G);G.stateTrans = getStateTrans(G);

⌨️ 快捷键说明

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