A comparison between a neural network and the likelihood method to evaluate the performance of the a transition radiation detector