*
* @param rawSignal The Segment inverted and normalized.
* @return Signal
*/
public Signal sliceSignal(Segment rawSignal) {
Signal processed = new Signal();
int relativeInitOfSegment = this.initOfSegment;
Segment segment;
int i = 0;
while (relativeInitOfSegment < rawSignal.size()) {
segment = this.obtainNextSegment(rawSignal, relativeInitOfSegment);
processed.getSegments().add(segment);
relativeInitOfSegment = relativeInitOfSegment + segment.size() + this.offset;
i++;
}
return processed;
}