credit.ensemble.gaussian_noise
==============================

.. py:module:: credit.ensemble.gaussian_noise


Functions
---------

.. autoapisummary::

   credit.ensemble.gaussian_noise.add_gaussian_noise


Module Contents
---------------

.. py:function:: add_gaussian_noise(x, std=0.1, mean=0.0, N=1)

   Adds Gaussian noise to the first portion of channels in a tensor.

   :param x: Input tensor of shape (B, C, T, lat, lon).
   :type x: torch.Tensor
   :param std: Standard deviation of the Gaussian noise.
   :type std: float
   :param mean: Mean of the Gaussian noise.
   :type mean: float
   :param N: Number of different noisy tensors to return.
   :type N: int

   :returns: Single noisy tensor if N=1, else a list of N noisy tensors.
   :rtype: A list of torch.Tensor


