Theory of periodic convolutional neural network