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_values
numpy.ndarray
The metric values at each H value.
- hvalues
numpy.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.
- **kwargs
dict
, optional Keyword arguments to pass to dndh_func
- metric_values
- Returns:
- int_vals
numpy.ndarray
The integrated metric values.
- int_vals