tspy.data_structures.observations.Observation module

class tspy.data_structures.observations.Observation.Observation(tsc, time_tick=- 1, value=None)

Bases: object

Basic storage unit for a single time-series observation

Examples

create a simple observation

>>> import tspy
>>> obs = tspy.observation(1,1)
>>> obs
TimeStamp: 1     Value: 1
Attributes
time_tickint

Returns

valueany

Returns

Methods

__call__(timestamp, value)

Call self as a function.

property time_tick
Returns
int

the time-tick associated with this observation

property value
Returns
any

the value associated with this observation