Representation of functional data in neural networks