Statistics for Optimal trajectory calculation using neural networks