PyLops / pylops

PyLops – A Linear-Operator Library for Python
https://pylops.readthedocs.io
GNU Lesser General Public License v3.0
431 stars 102 forks source link

patch: allow psnr to use range instead of max #509

Closed mrava87 closed 1 year ago

mrava87 commented 1 year ago

This PR handles https://github.com/PyLops/pylops/issues/508 allowing to use the range of xref instead of just the maximum (required for non-strictly positive signals - signals with negative values).

By adding xmin=0 still ensure backward compatibility, but allows for using effective range by choosing the appropriate xmin