pyhctsa.operations.scaling.higuchi_fd

pyhctsa.operations.scaling.higuchi_fd(y, kmax=None)

Higuchi’s fractal dimension of a time series.

Estimates the fractal dimension of the time series’ waveform (its graph in the (index,value) plane) via Higuchi’s curve-length method: at each scale k, the series is split into k interleaved subsequences, each subsequence’s normalized curve length is measured, and the k lengths are averaged to give L(k). The fractal dimension is (minus) the slope of log(L(k)) against log(1/k).

References

Parameters:
y : array-like

The input time series.

kmax : int, optional

The maximum interleaving scale to include in the fit (default: a small, fixed value – see Notes above for why a large kmax is actively harmful, not just unnecessary).

Returns:

The fitted (Higuchi) log-log slope and diagnostics of the linear fit’s quality.

Return type:

dict