TemporalProp
#
Bases: object
A view of a temporal property
__eq__(value)
#
Return self==value.
__ge__(value)
#
Return self>=value.
__gt__(value)
#
Return self>value.
__iter__()
#
Implement iter(self).
__le__(value)
#
Return self<=value.
__lt__(value)
#
Return self<value.
__ne__(value)
#
Return self!=value.
__repr__()
#
Return repr(self).
at(t)
#
Get the value of the property at a specified time.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
t
|
Any
|
time. |
required |
Returns:
Type | Description |
---|---|
Optional[PropValue]
|
|
average()
#
Compute the average of all property values. Alias for mean().
Returns:
Type | Description |
---|---|
PropValue
|
The average of each property values, or None if count is zero. |
history()
#
Get the timestamps at which the property was updated.
Returns:
Type | Description |
---|---|
NumpyArray
|
|
history_date_time()
#
Get the timestamps at which the property was updated.
Returns:
Type | Description |
---|---|
Optional[List[datetime]]
|
|
items()
#
items_date_time()
#
max()
#
mean()
#
Compute the mean of all property values. Alias for mean().
Returns:
Type | Description |
---|---|
PropValue
|
The mean of each property values, or None if count is zero. |
median()
#
min()
#
ordered_dedupe(latest_time)
#
List of ordered deduplicated property values.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
latest_time
|
Any
|
Enable to check only latest time. |
required |
Returns:
Type | Description |
---|---|
List[int]
|
|
sum()
#
Compute the sum of all property values.
Returns:
Type | Description |
---|---|
PropValue
|
The sum of all property values. |
values()
#
Get the property values for each update.
Returns:
Type | Description |
---|---|
NumpyArray
|
|