Open jstriaukas opened 2 years ago
Let me start on this issue first
Code for orthogonal polynomials added to codebase, now at https://github.com/jstriaukas/midasmlpy/blob/master/midasmlpy/midas_polynomials.py. Will add test cases next.
Hi, I think there is a bug in the lb function particulalry at https://github.com/jstriaukas/midasmlpy/blob/9d35a407afea3586e1b98e8681e5137e71b819e2/midasmlpy/src/midas_polynomials.py#L44 You will likely get a dimension error because a scalar multiplies a vectors with @ instead of Psi[:, i] = np.sqrt((2i + 1) / (b-a)) @ P[:, i]
Thanks a lot, Jeremy. We will try to fix it ASAP.
Create a function that computes Legendre & Gegenbauer polynomials.
Examples: https://github.com/jstriaukas/midasml/blob/master/R/midas.polynomials.R