Neural networks and mathematical distributions theory: periodical and almost periodical dirac firings