
# Compute the remainder in $\bigl[-\tfrac{T}{2},\frac{T}{2}\bigr)$

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
8
9
10
11
12
13
% symMod(v,T) compute the modulus with respect to [-T/2, T/2)
%
%   INPUT
%       v : value(s) of arbitrary data shape
%       T : period T
%
%   OUTPUT
%       p : the congruence class representant w.r.t. [-T/2, T/2)
%
% ---
% Manifold-valued Image Restoration Toolbox 1.0
% R. Bergmann ~ 2014-02-12 | 2014-11-29