Sample Implementation of an online algorithm for computing the least-squares periodograms.