colour_hdri.normal_distribution_function#

colour_hdri.normal_distribution_function(a: ArrayLike, mu: Floating = 0.5, sigma: Floating = 0.15) ndarray[source]#

Return given array weighted by a normal distribution function.

Parameters:
  • a (ArrayLike) – Array to apply the weighting function onto.

  • mu (Floating) – Mean or expectation.

  • sigma (Floating) – Standard deviation.

Returns:

Weighted array.

Return type:

numpy.ndarray

Examples

>>> normal_distribution_function(np.linspace(0, 1, 10))
array([ 0.00386592,  0.03470859,  0.18002174,  0.53940751,  0.93371212,
        0.93371212,  0.53940751,  0.18002174,  0.03470859,  0.00386592])