Skip to contents

Coarse box-counting on the amplitude-normalised signal across n_scales log-spaced box widths; returns the slope of log N(s) vs. log(1/s).

Usage

morie_dsp_katz_fd(x, n_scales = 10L)

Arguments

x

Numeric vector.

n_scales

Number of box sizes. Default 10.

Value

Scalar fractal dimension.

References

Rangayyan & Krishnan (2015), Ch. 5, sec. 5.7; Katz (1988).

Examples

t <- seq.int(0, 511) / 512
x <- sin(2 * pi * 8 * t)
morie_dsp_katz_fd(x)
#> [1] 0.9278845
morie_dsp_katz_fd(rep(2, 50))  # flat signal: 0
#> [1] 0