class_docstr: 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.
class_docstr_tok: ["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","."]
code: def __init__(
      self,
      strength: float = 0,
      range: tuple = None,
      positive: bool = False,
  ):
      Prox.__init__(self, range)
      self.positive = positive
      self._prox = self._build_cpp_prox("float64")
  
file_path: tick/tick/prox/prox_equality.py
imports: import numpy
  import sys
  from .base import Prox
  from .build.prox import ProxEqualityDouble
  from .build.prox import ProxEqualityFloat
label_desc: Use image node_id 1 to create a new ProxEquality object from inherited base classes: Prox with example: obj = ProxEquality(strength, range, positive)