tspy.data_structures.Stats module¶
-
class
tspy.data_structures.Stats.
Stats
(tsc, j_stats)¶ Bases:
object
time-series statistics object in use when describing a time-series
- Attributes
top
anyReturns
unique
intReturns
frequency
intReturns
first
Observation
Returns
last
Observation
Returns
count
intReturns
min_inter_arrival_time
intReturns
max_inter_arrival_time
intReturns
mean_inter_arrival_time
floatReturns
Methods
toString
-
property
count
¶ - Returns
- int
number of elements in the time-series
-
property
first
¶ - Returns
Observation
the first observation
-
property
frequency
¶ - Returns
- int
number of occurrences of the top element
-
property
last
¶ - Returns
Observation
the last observation
-
property
max_inter_arrival_time
¶ - Returns
- int
max time between observations
-
property
mean_inter_arrival_time
¶ - Returns
- float
mean time between observations
-
property
min_inter_arrival_time
¶ - Returns
- int
min time between observations
-
toString
()¶
-
property
top
¶ - Returns
- any
element that occurs most frequently
-
property
unique
¶ - Returns
- int
number of unique elements