//! Delta (change-based) encoding: spikes when change exceeds threshold.
use Backend;
use Tensor;
/// Delta encoding: compare data to previous; output spike representation of changes.
/// For the first step, prev can be zeros. Returns [batch, features] float: +1 for pos, -1 for neg, 0 else.