medianSignal Modifiers:Standard Filtersmedianmedian
A median filter, a variant FIR lowpass filter.
Description
Implementation of a median filter.
Syntaxares median asig, ksize, imaxsize [, iskip]Initializationimaxsize -- the maximun size of the window used to
select the data.
iskip -- initial
disposition of internal data space. A zero value will clear the
space; a non-zero value will allow previous information to
remain. The default value is 0.
Performanceasig -- input signal to be filtered
ksize -- size of the window over which the
input is to be filtered. It must not exceed the maximum window
size; if it does it is truncated.
median is a simple filter that retuns the
median value of the last ksize values. It
has a lowpass action. The efficiency decreases as the window
size increases.
Examples
Here is an example of the median opcode. It uses the file median.csd.
Example of the median opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoStandard filters: Variant FIR lowpass filterCreditsAuthor: &namejohn;University of BathMay 2010New in Csound version 5.13