spyrit.core.prep.Rescale.sigma

Rescale.sigma(v: tensor) tensor[source]

Rescale the variance of the measurements

\[\text{var}(m) = \frac{\text{var}(y)}{\alpha^2}\]
Args:

v (torch.tensor): Variance of \(y\) with arbitrary shape.

Returns:

torch.tensor: Rescaled variance with the same shape as the input.