DistributionFunctionBasedSFH#
- class cogsworth.sfh.DistributionFunctionBasedSFH(potential, df=None, **kwargs)[source]#
Bases:
StarFormationHistoryA star formation history based on a distribution function. This is an abstract base class and should not be instantiated directly.
- Parameters:
- Parameters are the same as :class:`StarFormationHistory` but additionally with the following:
- potential
PotentialorPotential The gravitational potential in which to sample the distribution function
- dffunction or dict
Either a function that represents the distribution function, taking J as an argument, or the keyword arguments to pass to the distribution function(s) using
agama.DistributionFunction.
Attributes Summary
Methods Summary
sample(size)Sample from the distributions for each component, combine and save in class attributes
Attributes Documentation
Methods Documentation