aseg1

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 14:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
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 by avr(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.

Navigation menu

Personal tools