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

📄 initializealllatenttrace.m

📁 Continuous Profile Models (CPM) Matlab Toolbox.
💻 M
字号:
function latentTrace = initializeAllLatentTrace(G,baseTraces,randSeed,smoothFrac)latentTrace = zeros(G.numTaus,G.numClass,G.numBins);if ~exist('smoothFrac','var')    smoothFrac='';endfor cc=1:G.numClass  myInds = G.class{cc};   % just use one from each class  if G.zInitType==1      %% just use one of the traces and then smooth it      thisTrace = squeeze(baseTraces(myInds(G.startSamp),:,:))';  elseif G.zInitType==2            %% for DTW need all of the traces      thisTrace = baseTraces(myInds,:,:);  end    if exist('randSeed') && ~isempty(randSeed)    latentTrace(:,cc,:) = initializeLatentTrace(G,thisTrace,randSeed,smoothFrac)';    else    latentTrace(:,cc,:) = initializeLatentTrace(G,thisTrace,'',smoothFrac)';    end;end

⌨️ 快捷键说明

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