Skip to content

Commit 8ca1735

Browse files
authored
docs: fix ERGAS metric (#2573)
1 parent 53fbadf commit 8ca1735

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/torchmetrics/image/ergas.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@ class ErrorRelativeGlobalDimensionlessSynthesis(Metric):
3535
band of the result image. It is defined as:
3636
3737
.. math::
38-
ERGAS = 100 \cdot \frac{h}{l} \cdot \sqrt{\frac{1}{N} \sum_{k=1}^{N} \frac{RMSE(B_k)^2}{\mu_k^2}}
38+
ERGAS = \frac{100}{r} \cdot \sqrt{\frac{1}{N} \sum_{k=1}^{N} \frac{RMSE(B_k)^2}{\mu_k^2}}
3939
40-
where :math:`h` and :math:`l` denote the spatial resolution (pixel size) of the high and low resolution images,
41-
often shorted to the ratio between them :math:`r=h/l`. :math:`N` is the number of spectral bands, :math:`RMSE(B_k)`
42-
is the root mean square error of the k-th band between low and high resolution images, and :math:`\\mu_k` is the
43-
mean value of the k-th band of the reference image.
40+
where :math:`r=h/l` denote the ratio in spatial resolution (pixel size) between the high and low resolution images.
41+
:math:`N` is the number of spectral bands, :math:`RMSE(B_k)` is the root mean square error of the k-th band between
42+
low and high resolution images, and :math:`\\mu_k` is the mean value of the k-th band of the reference image.
4443
4544
As input to ``forward`` and ``update`` the metric accepts the following input
4645

0 commit comments

Comments
 (0)