Commit 5dd78b56 authored by Lukas Platz's avatar Lukas Platz
Browse files

fix SquaredNormOperator docstring

parent 2e63dd00
Pipeline #61673 passed with stages
in 6 minutes and 54 seconds
...@@ -44,8 +44,8 @@ class EnergyOperator(Operator): ...@@ -44,8 +44,8 @@ class EnergyOperator(Operator):
_target = DomainTuple.scalar_domain() _target = DomainTuple.scalar_domain()
class SquaredNormOperator(EnergyOperator): class Squared2NormOperator(EnergyOperator):
"""Computes the L2-norm of the output of an operator. """Computes the square of the L2-norm of the output of an operator.
Parameters Parameters
---------- ----------
...@@ -138,7 +138,7 @@ class GaussianEnergy(EnergyOperator): ...@@ -138,7 +138,7 @@ class GaussianEnergy(EnergyOperator):
raise ValueError("no domain given") raise ValueError("no domain given")
self._mean = mean self._mean = mean
if inverse_covariance is None: if inverse_covariance is None:
self._op = SquaredNormOperator(self._domain).scale(0.5) self._op = Squared2NormOperator(self._domain).scale(0.5)
else: else:
self._op = QuadraticFormOperator(inverse_covariance) self._op = QuadraticFormOperator(inverse_covariance)
self._icov = None if inverse_covariance is None else inverse_covariance self._icov = None if inverse_covariance is None else inverse_covariance
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment