Statistics for Smoothening Functions and the Homomorphism Learning Problem