https://en.wikipedia.org/wiki/Dyadic_transformation