clojure.math.signal documentation

Signal processing.

conv

(conv xs kernel)(conv xs kernel output)
Discrete convolution of one-dimensional sequences.

Parameters:

xs      a finite (of size N) or an infinite seqable

kernel  a seqable of finite size K (an array, a vector)

output  an optional parameter; one of :full, :valid, :same

        :full (default)  calculate every point with an overlap (N+K-1);

        :same            return exactly max(N, K) points,
                         pad with zeros at edges;

        :valid           return only (N-K+1) inner points,
                         without zero padding at the edges.

medfilt

(medfilt xs ksize)
Apply a median filter to the input sequence xs with a window size ksize.
ksize should be odd.