ste
Builtin index · Signal processing
result = ste(x, [win=256], [hop=win/2])
Input: x, win, hop · Output: result
What it is
x: a length-N real vector. win (optional number): frame length in samples; hop (optional number, default win/2): samples between successive frame starts.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
result = ste(x, [win=256], [hop=win/2]) | x vectorx: a length-N real vector.win number, optional (default 256)win (optional number): frame length in samples.hop number, optional (default win/2)hop (optional number, default win/2): samples between successive frame starts. | result vector | Returns a vector of length num_frames, one energy value per frame. Short-time energy: the windowed extension of energy(x) over sliding, overlapping frames — the standard way to track how a signal's power evolves over time (e.g. locating bursts in EMG, or voiced/silent segments in speech). |
Examples
From the documentation, and run by the build -- the output and the figure below are what the engine actually produced. Simplest first.
e_t = ste(emg_signal, 200, 100) # energy per 200-sample frame, 50% overlap
from numerics-dsp
How it works
ste(x, [win=256], [hop=win/2]) — short-time energy: the windowed extension of energy(x) over sliding, overlapping frames, the standard way to track how a signal's power evolves over time (e.g. locating muscle-activation bursts in an EMG signal, or voiced/silent segments in speech).
From the note above this builtin in the interpreter, where the reasoning was written down as it was built.