Functional Data Analysis and Machine Learning for High-Dimensional Structured Data