spectrochempy.normal

normal(loc=0.0, scale=1.0, size=None, dtype=None, **kwargs)[source]

Return samples from a normal (Gaussian) distribution.

Parameters:
  • loc (float, optional) – Mean of the distribution.

  • scale (float, optional) – Standard deviation of the distribution. Must be non-negative.

  • size (int or tuple of ints, optional) – Output shape. Default is None, in which case a single value is returned.

  • dtype (dtype, optional) – Desired dtype of the result. The default is np.float64.

  • **kwargs – Keyword arguments used when creating the returned object, such as units, name, title, etc.

Returns:

normal – Samples drawn from the normal distribution.