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
topany

Returns

uniqueint

Returns

frequencyint

Returns

firstObservation

Returns

lastObservation

Returns

countint

Returns

min_inter_arrival_timeint

Returns

max_inter_arrival_timeint

Returns

mean_inter_arrival_timefloat

Returns

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