I'm working with several data frames of 500000 real numbers which, mathematically speaking, if $df$ is one of the data frames I'm working with, then $df\subseteq C\subset [0,1]$, where $C$ denotes the middle third Cantor set.
A program is needed to compute the fractal dimension of every data frame using numerical methods; such as box-counting programs. Our objective is to characterize the data frames in two groups by their fractal dimension: the first group (control condition) with a fractal dimension (significantly) less than $\frac{\log(2)}{\log(3)}$ and the second group (experimental condition) with a fractal dimension very close to $\frac{\log(2)}{\log(3)}$, where $\frac{\log(2)}{\log(3)}$ is the fractal dimension of Cantor set.
I have found two MatLab programs to estimate the box-counting dimension for one-dimensional data: https://www.mathworks.com/matlabcentral/fileexchange/13063-boxcount which with random methods computes the dimension, but most of the time fails, and section A.2 of https://fse.studenttheses.ub.rug.nl/12313/1/DimensionofFractals.pdf, page 26, but it doesn't display the fractal dimension computed
(Information for the data frame)
Data used is generated using that sequence space of $0$'s and $2$'s, $\{0,2\}^\mathbb{N}$, is homeomorphic to the middle third Cantor set. So, taking $n$ elements of $\{0,2\}^\mathbb{N}$ where only the first $100$ entries are randomly generated and the rest of the entries are $0$'s and then I compute the ternary representation (the homeomorphism) of each of the $n$ elements to obtain the $n$ elements in the Cantor set.
I took the code from section A.2 of https://fse.studenttheses.ub.rug.nl/12313/1/DimensionofFractals.pdf, page 26, as a reference to write a Python code to estimate the fractal dimension of real line subsets.