Skip to content

Shift Bijector¤

distreqx.bijectors.Shift(distreqx.bijectors.AbstractBijector) ¤

Bijector that translates its input elementwise.

The bijector is defined as follows:

  • Forward: \(y = x + \text{shift}\)
  • Forward Jacobian determinant: \(\log|\det J(x)| = 0\)
  • Inverse: \(x = y - \text{shift}\)
  • Inverse Jacobian determinant: \(\log|\det J(y)| = 0\)

where shift parameterizes the bijector.

__init__(shift: Array) ¤

Initializes a Shift bijector.

Arguments:

  • shift: the bijector's shift parameter.