spyrit.core.prep.UnsplitRescale.forward
- UnsplitRescale.forward(y: tensor) tensor[source]
Unsplit and rescale measurements
\[m = \frac{y_+ - y_-}{\alpha},\]where \(y_-\) \(y_+\) are the raw measurements and \(\alpha\) represents their intensity.
- Args:
y(torch.tensor): Raw measurements of shape \((*, 2M)\)- Returns:
torch.tensor: Rescaled and unsplit measurements of shape \((*, M)\).