Digital filters for nuclear particle detectors