Generalized Linear Regression on Sampled Signals and Curves: A P-Spline Approach | Synapse