pyhctsa.operations.graph.visibility_graph

pyhctsa.operations.graph.visibility_graph(y, meth='horiz', max_l=5000)

Visibility graph analysis of a time series.

Constructs a visibility graph of the time series and returns various statistics on the properties of the resulting network. cf. [1] and [2].

References

Parameters:
y : array-like

Input time series

meth : str, optional

Method for constructing the visibility graph:

  • ’horiz’: Uses horizontal visibility (only horizontal lines link nodes)

  • ’norm’: Uses natural visibility (standard visibility definition)

Default is 'horiz'.

max_l : int, optional

Maximum number of samples to analyze. Longer time series are truncated to first max_l points. Default is 5000.

Returns:

Statistics on the degree distribution.

Return type:

dict