Example code for Bishop's Pattern Recognition and Machine Learning book