flatironinstitute / nifty-ls

A fast Lomb-Scargle periodogram. It's nifty, and uses a NUFFT!
Apache License 2.0
32 stars 2 forks source link

add support for getting the best-fit model parameters #11

Open lgarrison opened 5 months ago

lgarrison commented 5 months ago

Astropy Lomb Scargle has a model_parameters() method that returns the least-squares fit at a single frequency. I don't think we need to use finufft for this, but it would probably make sense to add to the nifty-ls API. In the meantime, users can use nifty-ls for the periodogram and Astropy for the model parameters.

Thanks to @soichiro-hattori for the recommendation!