power_law_dndh

rubin_sim.maf.metrics.power_law_dndh(hvalues, hindex=0.33, no=None, ho=None, **kwargs)

Power law distribution of objects.

Parameters:
hvaluesnumpy.ndarray

The H values corresponding to each metricValue (must be the same length). The hvalues are expected to be evenly spaced.

hindexfloat, optional

The power-law index expected for the H value distribution. Default is 0.33 (dN/dH = 10^(hindex * H) ).

nofloat, optional
ho: `float`, optional

If no and ho are specified, this provides an anchor for the power law distribution, so that the expected number no of objects at ho is returned. Do not need to be set if just doing comparative weighting.

Returns:
dndhnumpy.ndarray