Function Used to Approximate Columns of the Input Matrix Using Fourier Series and Various Lengths of Period