Open cgarling opened 7 months ago
Starting work on this in fitting/mdf.jl
.
This functionality is now provided by the mdf_amr
method. This method needs documentation.
Documentation with doctest added in commit ad3cf60a19a0b1b36bff741a68725ad188a1bc39. Would still like to have a number-weighted version, but low-priority at the moment.
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.