TemporalProperty

A view of a temporal property

Methods

MethodDescription
atGet the value of the property at a specified time.
averageCompute the average of all property values. Alias for mean().
countCount the number of properties.
itemsList update times and corresponding property values.
maxFind the maximum property value and its associated time.
meanCompute the mean of all property values. Alias for mean().
medianCompute the median of all property values.
minFind the minimum property value and its associated time.
ordered_dedupeList of ordered deduplicated property values.
sumCompute the sum of all property values.
uniqueList of unique property values.
valueGet the latest value of the property.
valuesGet the property values for each update.

Properties

PropertyDescription
historyReturns a history object which contains time entries for when the property was updated.

Method Details

at

Signature: at(t)

Get the value of the property at a specified time.

Parameters

NameTypeDefaultDescription
tTimeInput-time

Returns

TypeDescription
PropValue, optional

average

Compute the average of all property values. Alias for mean().

Returns

TypeDescription
PropValueThe average of each property values, or None if count is zero.

count

Count the number of properties.

Returns

TypeDescription
intThe number of properties.

items

List update times and corresponding property values.

max

Find the maximum property value and its associated time.

mean

Compute the mean of all property values. Alias for mean().

Returns

TypeDescription
PropValueThe mean of each property values, or None if count is zero.

median

Compute the median of all property values.

min

Find the minimum property value and its associated time.

ordered_dedupe

Signature: ordered_dedupe(latest_time)

List of ordered deduplicated property values.

Parameters

NameTypeDefaultDescription
latest_timebool-Enable to check the latest time only.

sum

Compute the sum of all property values.

Returns

TypeDescription
PropValueThe sum of all property values.

unique

List of unique property values.

Returns

TypeDescription
list[PropValue]

value

Get the latest value of the property.

Returns

TypeDescription
PropValue, optional

values

Get the property values for each update.

Returns

TypeDescription
NumpyArray

Property Details

history

Returns a history object which contains time entries for when the property was updated.

Returns

TypeDescription
History