Skip to main content

locate_source

Function locate_source 

Source
pub fn locate_source(
    sensors: &[Sensor],
    arrival_times_s: &[f64],
    propagation_speed_m_s: f64,
    options: &SourceLocateOptions,
) -> Result<SourceSolution, SourceLocalizationError>
Expand description

Locate a source from sensor arrival times.

sensors and arrival_times_s must have matching length. Positions must all be 2D or all be 3D. The call-level propagation speed is used for every sensor without a per-sensor override.