MatrixReport.calc_vehicle_kms#

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

Calculate vehicle kms from the matrix passed on initialisation.

The result is stored within the object which can be accessed using the MatrixReport.vkms property. VKMs are calculated as the sum of the product of the cost matrix and the matrix.

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

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

Return type:

None