the cycle of twelve
Assorted answers to this week's problem set, as Jupyter Notebook pages for download:
Daniel: Explains harmonic regression in terms of linear algebra notation, which has the advantage of being very compact and general, thus powerful. Introduces the use of a Python class to hold Moriarty's method with its various function pieces.
Steffan: Uses the Python
reregular expression module for some of the parsing, and pattern matching using
reis something you should definitely look into if you haven't already. Sets bounds on the SciPy minimizer to keep \(\phi\) phase values between 0 and 24hr.
Sean: Includes some bonus scatter plotting of the fitted \(a\) and \(b\) parameters, showing that Moriarty's got other problems beside mis-estimating his phases \(\phi\).