Description Usage Arguments Details Value Author(s) See Also Examples
Move a spectral segment of a sample shiftStep points to right or left
1 2 | 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). |
Move a spectral segment of a sample shiftStep points to right or left
The new segment after shifting.
Trung Nghia Vu
1 2 3 4 5 6 7 8 9 10 11 12 |
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.