Function apsis::comet_magnitude_regression[][src]

pub fn comet_magnitude_regression(
    apparent_magnitudes: &[f64],
    dists_to_sun: &[f64],
    dists_to_earth: &[f64]
) -> (f64, f64)

Given a number of comet observations, this function performs linear regression to find the absolute magnitude and coefficient of a comet. Distances are in astronomical units.