Skip to main content

amplitude_nrmse

Function amplitude_nrmse 

Source
pub fn amplitude_nrmse<T>(
    reference: ArrayView2<'_, Complex<T>>,
    estimate: ArrayView2<'_, Complex<T>>,
    mask: Option<ArrayView2<'_, bool>>,
    alignment: ComplexAlignment,
) -> Result<f64, ComplexMetricError>
where T: Float + ToPrimitive,
Expand description

Compare magnitudes after alignment, normalized by reference magnitude energy.

This returns || |aligned_estimate| - |reference| ||₂ / ||reference||₂. The requested ComplexAlignment is fitted over the selected pixels.