{'fraction_non_alphanumeric': 0.020859671302149177, 'fraction_numerical': 0.008217446270543615, 'mean_word_length': 4.294314381270903, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
On Optimal Thickness of the Curve at Calculating the Fractal Dimension Using the Box-Counting Method

Fractal curves are found in various fields of science and technology, and the calculation of the dimensions of the curves is an actual direction. The fractal dimension (FD) is a metric used to characterize the filling of a plane with a curve. The choice of the thickness of the curve
 line at calculating its FD using the box-counting method (BCM) is not obvious. This is the subject of the present paper. First, we consider a straight horizontal line with different thicknesses, and calculate FD for different thicknesses, using BCM. Using the exact dimensional value for a
 straight line, the initial conclusion is made about the thicknesses that give a correct FD. In the next step, the dimensions of straight lines rotated by a certain angle in the range from to 90 degrees are calculated. At any angle of inclination of the line, the FD values should also remain
 equal to unity. The range of FD values depending on the rotation angle is analyzed. The result is an “optimal” line thickness equal to 3 px. At this value, the FD values are the closest to one for any angle of inclination. As a result it is received that at dimensional calculation
 by means of BCM, it is enough to choose the initial image of 200 on 200 pixels, and boxes to choose the sizes from 2 to 50 pixels with step of 2 pixels. The stability of dimension calculations on the grid offset has been verified. The algorithm’s error is estimated on the example of
 the calculation of FD for the Koch fractal.