PyANGKernel.GKCentroidVector

class GKCentroidVector

Inheritance diagram of PyANGKernel.GKCentroidVector

Synopsis

Methods

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

Detailed Description

Values associated with centroid (for example, number of parking slots in a destination centroid)

class ContentsType
__init__()
__init__(v)
Parameters:

vGKCentroidVector

getCentroidConfiguration()
Return type:

GKCentroidConfiguration

Get the centroid configuration

getContents()
Return type:

ContentsType

getDimension()
Return type:

int

getTotal([col=0[, nullValue=None]])
Parameters:
  • col – int

  • nullValue – bool

Return type:

float

Total for all centroids. nullValue will be true if the no value has been assigned to any centroid.

getValue(centroid[, col=0[, nullValue=None]])
Parameters:
  • centroidGKCentroid

  • col – int

  • nullValue – bool

Return type:

float

Value by centroid. nullValue will be true if the no value has been assigned to the centroid.

setCentroidConfiguration(cent)
Parameters:

centGKCentroidConfiguration

Set (when created) the centroid configuration of this vector.

setContents(type)
Parameters:

typeContentsType

setDimension(val)
Parameters:

val – int

setValue(centroid, value[, col=0])
Parameters:
  • centroidGKCentroid

  • value – float

  • col – int

Value by centroid