SkimMatrixArray¶
-
public class
SkimMatrixArray
implements SkimMatrix¶ Skim matrix for storing inter-zonal travel times or costs (for passenger vehicles).
Author: Milan Lovric
Methods¶
getAbsoluteDifference¶
-
public double
getAbsoluteDifference
(SkimMatrix other)¶ Gets sum of absolute differences between elements of two matrices.
Parameters: - other – The other matrix.
Returns: Sum of absolute differences.
getAverageCost¶
-
public double
getAverageCost
(ODMatrixMultiKey flows)¶ Gets average OD cost weighted by demand.
Parameters: - flows – The demand as an origin-destination matrix.
Returns: Average cost.
getCost¶
getCost¶
-
public double
getCost
(int originZoneID, int destinationZoneID)¶ Gets cost for a given origin-destination pair.
Parameters: - originZoneID – Origin zone ID.
- destinationZoneID – Destination zone ID.
Returns: Origin-destination cost.
getSortedDestinations¶
getSortedOrigins¶
getSumOfCosts¶
-
public double
getSumOfCosts
(ODMatrixMultiKey flows)¶ Gets sum of costs multiplied by demand flows.
Parameters: - flows – The demand as an origin-destination matrix.
Returns: Sum of costs.