Automatic Optimisation of the Modified Probabilistic Neural Network for Pattern Classification and Time Series Analysis