integrate_over_h

rubin_sim.maf.metrics.integrate_over_h(metric_values, hvalues, dndh_func=<function power_law_dndh>, **kwargs)

Calculate a metric value integrated over an h_range. This is the metric value weighted by the size distribution.

Parameters:
metric_valuesnumpy.ndarray

The metric values at each H value.

hvaluesnumpy.ndarray

The H values corresponding to each metricValue (must be the same length).

dndh_funcfunction, optional

One of the dN/dH functions defined below. Default is a simple power law.

**kwargsdict, optional

Keyword arguments to pass to dndh_func

Returns:
int_valsnumpy.ndarray

The integrated metric values.