
# Conditional display

Computes the remainder of a value $x\in\mathbb R$ in $\bigl[-\tfrac{T}{2},\frac{T}{2}\bigr)$, which is mostly used for phase data, i.e. the manifold $S^1$ and $T=2\pi$.

### Matlab Documentation

1
2
3
4
5
6
7
% dispIf(condition,str) display string if condition is true.
% This small helper function is necessary for inline functions since there
% is no inline if.
%
% ---
% Manifold-valued Image Restoration Toolbox 1.2
% R. Bergmann | 2018-02-12