Skip to content

sig.sum

Olivier Lartillot edited this page Nov 14, 2018 · 2 revisions

Summation of filterbank channels

Once an audio waveform is decomposed into channels using a filterbank:

f=aud.filterbank(a)

https://miningsuite.googlecode.com/svn/wiki/SigSum_ex1.png

An envelope extraction, for instance, can be computed using this very simple syntax:

e=sig.envelope(f)

https://miningsuite.googlecode.com/svn/wiki/SigSum_ex2.png

Then the channels can be summed back using the sig.sum command:

s=sig.sum(e)

https://miningsuite.googlecode.com/svn/wiki/SigSum_ex3.png

The summation can be divided by the number of channels using the command:

s=sig.sum(…,'Mean')

Summary of filterbank channels

If we compute for instance an autocorrelation from the envelopes:

ac=sig.autocor(e)

Then we can sum all the autocorrelation using exactly the same sig.sum command:

s=sig.sum(e)

This summation of non-temporal signals across channels is usually called summary.

Summation along any dimension

(From version 0.11 on)

sig.sum(...,'Type',dim) sums along any dimension.

Clone this wiki locally