cr.sparse.lop.tv

cr.sparse.lop.tv(n, kind='regular', axis=0)[source]

Returns a total variation linear operator for 1D signals

Parameters
  • n (int) – Dimension of the model space

  • kind (str) – Boundary condition for handling differences

  • axis (int) – For multi-dimensional array input, the axis along which the linear operator will be applied

Returns

An linear operator which computes the variation in 1D signals

Return type

(Operator)

Note

To compute the total variation, we first apply the linear operator and then compute the norm of the variation.