tick.prox.ProxEquality

class tick.prox.ProxEquality(strength: float = 0, range: tuple = None, positive: bool = False)[source]

Projection operator onto the set of vector with all coordinates equal (or in the given range if given one). Namely, this simply replaces all coordinates by their average

Parameters:

strength : float, default=0.

Not used in this prox, but kept for compatibility issues

range : tuple of two int, default=`None`

Range on which the prox is applied. If None then the prox is applied on the whole vector

positive : bool, default=`False`

If True, ensures that the output of the prox has only non-negative entries (in the given range)

Attributes:

dtype : {'float64', 'float32'}

Type of the arrays used.

Examples using tick.prox.ProxEquality