colour_hdri.normal_distribution_function¶
-
colour_hdri.
normal_distribution_function
(a, mu=0.5, sigma=0.15)[source]¶ Returns given array weighted by a normal distribution function.
Parameters: - a (array_like) – Array to apply the weighting function onto.
- mu (numeric, optional) – Mean or expectation.
- sigma (numeric, optional) – Standard deviation.
Returns: Weighted array.
Return type: 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])