| Title: | Standard and Generalized Lacunarity for Binary Time Series |
|---|---|
| Description: | Estimates lacunarity and generalized lacunarity for unidimensional binary time series. The lacunarity index summarizes the similarity of parts from different regions of a series at a given scale by averaging the behavior of variable size structures of zeros and ones. The generalized lacunarity concept provides an enhanced measure of the organization of the gaps over all measured scales and over the different arrangements of smaller and larger gaps in the series. |
| Authors: | Ikaro Barreto [aut, cre] |
| Maintainer: | Ikaro Barreto <[email protected]> |
| License: | GPL (>= 2) |
| Version: | 0.1.0 |
| Built: | 2026-06-04 08:39:25 UTC |
| Source: | https://github.com/ikarobarreto/lacunarity |
Computes the generalized (multifractal-like) lacunarity of
a binary time series and the spectrum of scaling exponents .
genlac(x)genlac(x)
x |
a binary vector of 0's and 1's. |
The ordinary lacunarity is extended to an arbitrary moment order by
where is the -th moment of the gliding-box mass
distribution at scale . Large positive emphasises dense boxes
and negative emphasises sparse boxes, so the curve , with the slope of on
, describes how gaps of different magnitudes scale. Orders
range over .
A list with components:
sthe dyadic box scales .
qthe moment orders.
yqthe generalized scaling exponents .
Dqsthe matrix of generalized lacunarities
(rows index q, columns index s).
Vernon-Carter, J., Lobato-Calleros, C., Escarela-Perez, R., Rodriguez, E. and Alvarez-Ramirez, J. (2009). A suggested generalization for the lacunarity index. Physica A, 388(20), 4305-4314.
Allain, C. and Cloitre, M. (1991). Characterizing the lacunarity of random and deterministic fractal sets. Physical Review A, 44(6), 3552-3558.
lac for the ordinary lacunarity index.
x <- rbinom(1000, 1, 0.85) genlac(x)x <- rbinom(1000, 1, 0.85) genlac(x)
Computes the gliding-box lacunarity index of a binary time
series across dyadic scales, together with its scaling exponent.
lac(x)lac(x)
x |
a binary vector of 0's and 1's. |
A box of size is slid one observation at a time along the series and
its mass (the number of ones it covers) is recorded. Writing
for the -th moment of the resulting box-mass
distribution, the lacunarity index is
so that , with equality only for a translationally
homogeneous pattern. Larger values indicate gappier, more heterogeneous
textures. The scaling exponent y is the slope of
regressed on . Scales are dyadic,
, and capped by the longest run of ones.
A list with components:
ythe lacunarity scaling exponent .
Dsthe lacunarity at each scale.
sthe dyadic box scales .
Allain, C. and Cloitre, M. (1991). Characterizing the lacunarity of random and deterministic fractal sets. Physical Review A, 44(6), 3552-3558.
Plotnick, R. E., Gardner, R. H., Hargrove, W. W., Prestegaard, K. and Perlmutter, M. (1996). Lacunarity analysis: a general technique for the analysis of spatial patterns. Physical Review E, 53(5), 5461-5468.
genlac for the generalized lacunarity spectrum.
x <- rbinom(1000, 1, 0.85) lac(x)x <- rbinom(1000, 1, 0.85) lac(x)