cgarling / StarFormationHistories.jl

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

Integrated metallicity distribution functions #24

Open cgarling opened 7 months ago

cgarling commented 7 months ago

Given the way that we are structuring the age-metallicity relation and using a mix of metallicities at each unique age to simulate imperfect ISM mixing, it should be straightforward to derive a mass-weighted metallicity distribution function (MDF) for the entire system. Deriving the number-weighted MDF, which is more relevant for comparison to observational studies, may be as simple as calculating the average number of stars per stellar mass formed for each population to translate the mass weighting to a number weighting. Would like a method for each AMR model that takes in the AMR coefficients and the SFR coefficients and returns something like a histogram or KDE giving the mass and/or number weighted MDF.

cgarling commented 6 months ago

Starting work on this in fitting/mdf.jl.

cgarling commented 4 months ago

This functionality is now provided by the mdf_amr method. This method needs documentation.

cgarling commented 4 months ago

Documentation with doctest added in commit ad3cf60a19a0b1b36bff741a68725ad188a1bc39. Would still like to have a number-weighted version, but low-priority at the moment.