Skip to main content

relative_l1

Function relative_l1 

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

Return sum(|aligned_estimate - reference|) / sum(|reference|).

aligned_estimate uses the requested ComplexAlignment fitted over the selected pixels.