HHSA
#%1.set initial parameters
Nnormal = 5 ; %number of spline envelope normalization for AM vlength = dSizes(1) vlength_1 = vlength -1 upper = vTmp ;; new((/dSizes(0),dSizes(1)/),typeof(vTmp)) upper = 0
do ni = 0,dSizes(0)-1 vimf = vTmp(ni,:)
abs_vimf = abs(vimf)
do jj=0,Nnormal-1
extvar=extrema(abs_vimf)
spmaxTmp = extvar[0]
spminTmp = extvar[1]
flag = extvar[2]
id_len = get1Dindex(spmaxTmp(:,0),vlength)
spmax = spmaxTmp(0:id_len,:)
id_len = get1Dindex(spminTmp(:,0),vlength_1)
spmin = spminTmp(0:id_len,:)
dd = ispan(0,vlength_1,1)
upper(ni,:) = ftcurv(spmax(:,0),spmax(:,1),dd) ;; (xi, yi, 0.1, xo)
delete(spmax) delete(spmin) delete(extvar) end do end do copy_VarMeta(vTmp,upper)
goal = 12;
ens = 1000;
nos_wn = 0.01 ;; stringtoint(getenv("nos_wn")) / 100. ;; 0.2 ;; 0.01;
print(nos_wn) dims = 1 ;; the time axial in upper is on number one !!! not zero opt = True opt@S_number = 4 opt@num_siftings = 50 opt@rng_seed = 0
imfs_am = eemd(upper,goal,ens,nos_wn,opt,dims)
printVarSummary(imfs_am) copy_VarMeta(upper(0,:),imfs_am(0,0,:))