doShift: Segment shift

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Move a spectral segment of a sample shiftStep points to right or left

Usage

1
2
doShift(specSeg,
    shiftStep)

Arguments

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).

Details

Move a spectral segment of a sample shiftStep points to right or left

Value

The new segment after shifting.

Author(s)

Trung Nghia Vu

See Also

hClustAlign,findShiftStepFFT

Examples

 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);

nghiavtr/speaq documentation built on May 20, 2019, 5:27 p.m.