doShift | R Documentation |
Move a spectral segment of a sample shiftStep points to right or left
doShift(specSeg, shiftStep)
specSeg |
The segment which needs to be shifted |
shiftStep |
The shift step for moving. If it is a negative (positive) value, the segment is moved to left (right). |
The new segment after shifting.
Trung Nghia Vu
hClustAlign
, findShiftStepFFT
res=makeSimulatedData(); X=res$data; groupLabel=res$label; maxShift=50; refSpec=X[1,]; tarSpec=X[2,]; adj=findShiftStepFFT(refSpec, tarSpec,maxShift=maxShift); newTarSpec=doShift(tarSpec,adj$stepAdj);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.