class RandomJitter(translate: Union[float, int, Sequence[Union[float, int]]])[source]

Bases: BaseTransform

Translates node positions by randomly sampled translation values within a given interval (functional name: random_jitter). In contrast to other random transformations, translation is applied separately at each position.


translate (sequence or float or int) – Maximum translation in each dimension, defining the range \((-\mathrm{translate}, +\mathrm{translate})\) to sample from. If translate is a number instead of a sequence, the same range is used for each dimension.