Investigating Predictive Coding As A Principle of Function In Sensory Systems