Skip to content

A first filter

The same 300 Hz high-pass, four ways. Data is always (channels, samples).

import numpy as np
import dspk
x = np.random.default_rng(0).standard_normal((4, 30_000)).astype(np.float32)
spikes = dspk.ops.filter.iir(x, 30_000.0, "highpass", 300.0)
spikes.shape # (4, 30000)

That’s the shape of every operation: data in, the same shape out, on the device.

Where next: