spyrit.core.prep.SplitPoissonRaw.sigma_expe

SplitPoissonRaw.sigma_expe(x: tensor) tensor[source]

Estimates the variance of the measurements that are compensated for splitting but NOT for image normalization

Args:

x: Raw measurements with shape \((*, 2M)\).

Output:

Variance with shape \((*, M)\).

Example:
>>> x = torch.rand([10,2*32*32], dtype=torch.float)
>>> split_op.set_expe(gain=1.6)
>>> v = split_op.sigma_expe(x)
>>> print(v.shape)
torch.Size([10, 400])