Note

You are not reading the stable version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

normalize

gammapy.utils.random.normalize(func, x_min, x_max)[source]

Normalize a 1D function over a given range.