MatrixReport.trip_length_distribution#

MatrixReport.trip_length_distribution(cost_matrix, bins, *, sector_zone_lookup=None)[source]#

Calculate a distribution from the matrix passed on initialisation.

Distribution is stored within the object which can be accessed using the MatrixReport.distribution property.

Parameters:
  • cost_matrix (pd.DataFrame) – Cost matrix corresponding with the inputted matrix.

  • bins (list[int]) – Bins to use for the distribution.

  • sector_zone_lookup (translation.ZoneCorrespondence | None = None,) – Lookup vector to translate zones to sectors to create a sectorised distribution

Return type:

None