Skip to content

Instantly share code, notes, and snippets.

View wjjmjh's full-sized avatar
🦘
bouncing

Stephen Ka-Wah Ma (華) wjjmjh

🦘
bouncing
View GitHub Profile
@wjjmjh
wjjmjh / fractal-dimension.py
Created October 3, 2019 09:57 — forked from viveksck/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