Skip to content

Commit fd56deb

Browse files
committed
minor: removed g as unused
1 parent 00dc27c commit fd56deb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pyproximal/proximal/RelaxedMS.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ def _l2(x, alpha):
1515
x : :obj:`numpy.ndarray`
1616
Vector
1717
alpha : :obj:`float`
18-
scaling parameter
18+
Scaling parameter
1919
2020
Returns
2121
-------
2222
y : :obj:`numpy.ndarray`
23-
proximal of ``alpha||y - x||_2^2``
23+
Scaled vector
2424
2525
"""
2626
y = 1 / (1 + 2 * alpha) * x
@@ -54,8 +54,6 @@ class RelaxedMumfordShah(ProxOperator):
5454
a function that is called passing a counter which keeps track of how many
5555
times the ``prox`` method has been invoked before and returns a scalar (or a list of)
5656
``kappa`` to be used.
57-
g : :obj:`np.ndarray`, optional
58-
Vector to be subtracted
5957
6058
Notes
6159
-----
@@ -72,7 +70,7 @@ class RelaxedMumfordShah(ProxOperator):
7270
Mumford-Shah functional: European Conference on Computer Vision, 127–141.
7371
7472
"""
75-
def __init__(self, sigma=1., kappa=1., g=None):
73+
def __init__(self, sigma=1., kappa=1.):
7674
super().__init__(None, False)
7775
self.sigma = sigma
7876
self.kappa = kappa

0 commit comments

Comments
 (0)