aseg1
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
Contents
aseg1
Automatically segment a signal. Apply automatic segmentation to the vector x.
Usage:
aseg1(x, xmin, omin, omax, nmin, navr)
Parameters:
- x
- A data vector (e.g. an rms function).
- xmin
- The pause threshold.
- omin
- The offset for segment detection. E.g. x
[i] >
xmin+
omin.
- omax
- The offset for the segment center detection. E.g. x
[i] > max("segment")-
omax.
- nmin
- The minimum segment duration in frames. A segment is assigned if the segment condition is true for at least nmin frames.
- navr
- The averaging length. If navr is greater than
0
then all elements x[i]
are replaced byavr(
x[i-
navr.. i+
navr])
.
Result:
A matrix (or vector) y
with 4 rows and one column for each detected segment. Note that all values of y
are frame indices.
y[0,i]
= The beginning of the segment i
.
y[1,i]
= The beginning of the center of the segment i
.
y[2,i]
= The end of the center of the segment i
.
y[3,i]
= The end of the segment i
.