cgarling / StarFormationHistories.jl

Fitting astrophysical star formation histories via CMD modelling.
MIT License
3 stars 0 forks source link

Initial `fit_templates_fast` implementation #17

Closed cgarling closed 1 year ago

cgarling commented 1 year ago

Adds fit_templates_fast method and documentation that finds maximum likelihood estimates for SFH coefficients similarly to fit_templates but utilizes a sqrt transform rather than a log transform for improved convergence speed and does not return a maximum a posteriori result like fit_templates does. This method is meant to be used in hierarchical models. For an example test, this method took 2 ms with keyword argument g_abstol=1e-3 compared to ~7.5 ms for the existing fit_templates method.