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

📄 getlinearwarp.m

📁 Continuous Profile Models (CPM) Matlab Toolbox.
💻 M
字号:
% function newSt = getLinearWarp(allSamp,scaleAndTimes,newGKeep)%% Does a simple linear warping as follows:%% Uniformly sample the latent trace between the first point and% the last point.function newD = getLinearWarp(allSamp,scaleAndTimes,newGKeep)M=newGKeep.numTaus;N=length(allSamp{1});myRange = 1:N;for kk=1:newGKeep.numSamples  start=scaleAndTimes(kk,1,2);  stop=scaleAndTimes(kk,end,2);  myLen = stop-start+1;  myInterval = myLen/N;  tmpDat = start:myInterval:stop;  if (0)    [start stop]    [tmpDat(1),tmpDat(end)]    [tmpDat' scaleAndTimes(kk,:,2)']    figure, plot(tmpDat,scaleAndTimes(kk,:,2),'+-');  end  newD{kk}=tmpDat;end

⌨️ 快捷键说明

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