compute_edge_length

DelaunayDetector.compute_edge_length(stations, tri, clean_tri=True)[source]

Compute the edge length of the detection triangles.

Parameters
  • stations (list of Station) – The stations that have been used to compute the Delaunay tesselation _tri_.

  • tri (scipy.spatial.Delaunay) – A Delaunay tesselation computed using _stations_.

  • clean_tri (bool) – Filter the simplices of _tri_ using the maximum edge length of the triangles. Only the simplices with an edge length smaller than _self.max_edge_length_ are kept.

Returns

A dictionary with the edge lengths of the detection triangles. The key is a tuple of the NSL codes of the stations of the triangle.

Return type

dict