Neural Functions for Learning Periodic Signal