MatrixReport.trip_length_distribution#

MatrixReport.trip_length_distribution(cost_matrix, bins)[source]#

Calculate a distribution from the matrix passed on initilisation.

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.

Return type:

None