DistributionFunctionBasedSFH#

class cogsworth.sfh.DistributionFunctionBasedSFH(potential, df=None, **kwargs)[source]#

Bases: StarFormationHistory

A 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:
potentialPotential or Potential

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

agama_pot[source]#
df[source]#

Methods Documentation

sample(size)[source]#

Sample from the distributions for each component, combine and save in class attributes