Skip to content

Instantly share code, notes, and snippets.

View delton137's full-sized avatar

Daniel C. Elton delton137

View GitHub Profile
@viveksck
viveksck / fractal-dimension.py
Created March 14, 2017 13:07 — 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