spectrochempy.normal
- normal(loc=0.0, scale=1.0, size=None, dtype=None, seed=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.seed (int or SeedSequence or Generator, optional) – Seed for the random number generator. Passed to
numpy.random.default_rng. Default isNone, which produces non-reproducible output.**kwargs – Keyword arguments used when creating the returned object, such as units, name, title, etc.
- Returns:
normal – Samples drawn from the normal distribution.
Examples using spectrochempy.normal
Savitzky-Golay derivatives on a synthetic spectrum