Package enrichpy :: Module enrichment

Module enrichment

source code

Classes and routines to calculate enrichment and ionization histories.
Classes
  LFIonHistory
Calculate an ionization history based on luminosity function evolution.
  EnrichmentHistory
Calculate CIV histories based on ionization.
  EnrichmentHistoryCollection
Functions
 
tophat_delay_kernel(t, tmin, tmax)
Make a normalized tophat function (nonzero from tmin to tmax).
source code
 
get_omega_CIV_data(filename) source code
Variables
  __package__ = 'enrichpy'
Function Details

tophat_delay_kernel(t, tmin, tmax)

source code 

Make a normalized tophat function (nonzero from tmin to tmax).

t: array-like

The result is normalized so that the sum of the bins is equal to norm (not the integral), i.e. there's no multiplication by the width of the bins in the normalization.

Returns the kernel and the cdf.