Statistical properties of an algorithm used for illicit substance detection by fast-neutron transmission