PyANGKernel.ForestShortestPathCalculator¶
- class ForestShortestPathCalculator¶
Synopsis¶
Methods¶
def
__init__()def
calculate()def
getPath()def
getRoute()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- __init__(iForest)¶
- Parameters:
iForest –
BaseForest
- calculate()¶
- calculateForDestination(iUserIndex, iDestinationIndex)¶
- Parameters:
iUserIndex – int
iDestinationIndex – int
- calculateForUserclass(iUserIndex)¶
- Parameters:
iUserIndex – int
- calculateKShortestPaths(k, iUserIndex, iOriginId, iDestinationId[, iMaxDeviation=-1.0])¶
- Parameters:
k – int
iUserIndex – int
iOriginId – int
iDestinationId – int
iMaxDeviation – float
- getPath(iUserClass, iOrigin, iDestination)¶
- Parameters:
iUserClass –
GKUserClassiOrigin –
GKCentroidiDestination –
GKCentroid
- Return type:
- getPath(iUserIndex, iOriginIndex, iDestinationIndex, ioValidPath)
- Parameters:
iUserIndex – int
iOriginIndex – int
iDestinationIndex – int
ioValidPath – bool
- Return type:
- getRoute(iUserClass, iOrigin, iDestination)¶
- Parameters:
iUserClass –
GKUserClassiOrigin –
GKCentroidiDestination –
GKCentroid
- Return type: