docstr: ...Test of ProxEquality
          
docstr_tok: ["...","Test","of","ProxEquality"]
code: def test_ProxEquality(self):
      """...Test of ProxEquality"""
      coeffs = self.coeffs.copy()
      strength = 0.5
  
      prox = ProxEquality(strength)
      self.assertIsNone(prox.strength)
      prox.strength = 2.0
      self.assertIsNone(prox.strength)
  
      self.assertEqual(prox.value(coeffs), np.inf)
  
      out = np.empty(coeffs.shape)
      out.fill(np.mean(coeffs))
      np.testing.assert_array_almost_equal(prox.call(coeffs), out)
      step = 4.0
      np.testing.assert_array_almost_equal(
          prox.call(coeffs, step=step), out
      )
  
      coeffs -= 10.0
      out.fill(np.mean(coeffs))
      np.testing.assert_array_almost_equal(prox.call(coeffs), out)
      prox.positive = True
      out.fill(0.0)
      np.testing.assert_array_almost_equal(prox.call(coeffs), out)
  
      prox.range = (3, 8)
      prox.positive = False
      coeffs = self.coeffs.copy()
      out = coeffs.copy()
      out[3:8] = np.mean(out[3:8])
      np.testing.assert_array_almost_equal(prox.call(coeffs), out)
  
      coeffs[3:8] -= 10.0
      out[3:8].fill(np.mean(coeffs[3:8]))
      np.testing.assert_array_almost_equal(prox.call(coeffs), out)
      prox.positive = True
      out[3:8].fill(0.0)
      np.testing.assert_array_almost_equal(prox.call(coeffs), out)
  
      self.assertEqual(prox.value(out), 0)
      self.assertEqual(prox.value(coeffs), np.inf)
  
file_path: tick/tick/prox/tests/prox_equality_test.py
imports: import unittest
  import numpy
  from tick.prox import ProxEquality
  from tick.prox.tests.prox import TestProx
label_desc: Use image node_id 1 for calling the ProxEqualityTest obj's underlying member method code with example usage: obj.test_ProxEquality() without return types