tools.shot_phase_basis#
- bartorch.tools.shot_phase_basis()#
Legendre products in
yandxof total degree at mostorder, per partition.The polynomials run over
[-1, 1]across the field of view, so a shot’s phase is fitted to each partition (each band of a multiband unit) on its own.- Parameters:
shape (tuple of int) –
(z, y, x)image grid.order (int) – Largest total degree.
- Returns:
(z * terms, z, y, x)float32 functions,termsthe(order + 1) (order + 2) / 2products.- Return type:
torch.Tensor
- Raises:
ValueError – If
orderis negative.