Prev | Next |
avg_integrand = dismod_at.average_integrand(
rate, integrand_name, grid, abs_tol
)
key
is a key in the dictionary,
value = rate[key](age, time)
returns a float equal to the value of the specified rate
at the specified age and time.
Note that
age
will always be zero when evaluating
value = rate['pini'](age, time)
If a rate name is not in the dictionary, the corresponding rate is zero.
grid
is a dictionary with the following keys:
grid['age']
is a list of floats containing the grid points
for the average w.r.t. age.
These points are monotone increasing, the first (last) point is the
lower (upper) age limit for the average
grid['time']
is a list of floats containing the grid points
for the average w.r.t. time.
These points are monotone increasing, the first (last) point is the
lower (upper) time limit for the average