PyANGKernel.ForestPaths¶
- class ForestPaths¶
Synopsis¶
Methods¶
def
__init__()def
clearTree()def
prepareTree()def
restore()def
sortPaths()
Virtual methods¶
def
getPaths()def
getTrees()def
store()
Static functions¶
def
correctPaths()def
limitPaths()
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
- addSPTreeCompressed(path[, _treeId=-1[, iCluster=0[, iIteration=0[, iSlice=0]]]])¶
- clearTreesForReferenceCentroid(destinationId)¶
- Parameters:
destinationId – int
- static correctPaths(forest, paths, targetTotal)¶
- Parameters:
forest –
BaseForestpaths – .list of NSPTreeData
targetTotal – float
- abstractmethod getLocalIteration(intervalIndex, vehicleIndex, originIndex, originCon, destinationIndex, destinationCon)¶
- Parameters:
intervalIndex – int
vehicleIndex – int
originIndex – int
originCon – int
destinationIndex – int
destinationCon – int
- Return type:
- abstractmethod getPaths(intervalIndex, vehicleIndex, originIndex, originCon, destinationIndex, destinationCon, filterPaths[, nrPaths=-1])¶
- Parameters:
intervalIndex – int
vehicleIndex – int
originIndex – int
originCon – int
destinationIndex – int
destinationCon – int
filterPaths – .std.vectorNSPTreeData.PathType
nrPaths – int
- Return type:
.list of NSPTreeData
- abstractmethod getTrees(intervalIndex, vehicleIndex, destinationIndex, destinationCon)¶
- Parameters:
intervalIndex – int
vehicleIndex – int
destinationIndex – int
destinationCon – int
- Return type:
.std.vectorNSPPath
- getTreesForReferenceCentroid(centroidIndex)¶
- Parameters:
centroidIndex – int
- Return type:
.std.vectorNSPPath
- joinIdenticalPaths(paths, iUserIndex)¶
- Parameters:
paths – .list of NSPTreeData
iUserIndex – int
- static limitPaths(forest, paths, k)¶
- Parameters:
forest –
BaseForestpaths – .list of NSPTreeData
k – int
- prepareTreesForReferenceCentroid(centroidId)¶
- Parameters:
centroidId – int
- restore(stream, tempstream)¶
- Parameters:
stream –
QDataStreamtempstream –
QDataStream
- setLoadTreesInMemory(iValue)¶
- Parameters:
iValue – bool
- sortPaths(paths)¶
- Parameters:
paths – .list of NSPTreeData
- store(stream)¶
- Parameters:
stream –
QDataStream- Return type: