tools.nrmse#
- bartorch.tools.nrmse()#
Normalized root mean square error
‖input - reference‖ / ‖reference‖.- Parameters:
reference (torch.Tensor) – Arrays of the same shape.
input (torch.Tensor) – Arrays of the same shape.
scaled (bool, default=False) – First scale
referenceby the complex least-squares factorΣ conj(reference)·input / ‖reference‖².
- Returns:
The error.
- Return type:
float