The weighted periodic function and its properties