Skip to main content

fitted_gain

Function fitted_gain 

Source
pub fn fitted_gain<T>(
    reference: ArrayView2<'_, T>,
    estimate: ArrayView2<'_, T>,
    valid_mask: Option<ArrayView2<'_, bool>>,
) -> Result<f64, IntensityMetricError>
where T: ToPrimitive,
Expand description

Fit the least-squares scalar gain in estimate ≈ gain × reference.