Skip to content

Instantly share code, notes, and snippets.

View aleksanderhan's full-sized avatar

Aleksander Hansen aleksanderhan

View GitHub Profile
@aleksanderhan
aleksanderhan / fractal-dimension.py
Created December 8, 2021 01:35 — forked from rougier/fractal-dimension.py
Fractal dimension computing
# -----------------------------------------------------------------------------
# From https://en.wikipedia.org/wiki/Minkowski–Bouligand_dimension:
#
# In fractal geometry, the Minkowski–Bouligand dimension, also known as
# Minkowski dimension or box-counting dimension, is a way of determining the
# fractal dimension of a set S in a Euclidean space Rn, or more generally in a
# metric space (X, d).
# -----------------------------------------------------------------------------
import scipy.misc
import numpy as np