Lloyd's relaxation is a cousin of k-means that’s still used for quantization, dithering, and stippling. With the pieces from yesterday, it’s only about 10 lines of code…
https://en.wikipedia.org/wiki/Lloyd's_algorithm
#geometer #geometricalgebra
Lloyd's relaxation is a cousin of k-means that’s still used for quantization, dithering, and stippling. With the pieces from yesterday, it’s only about 10 lines of code…
https://en.wikipedia.org/wiki/Lloyd's_algorithm
#geometer #geometricalgebra
Here’s an example of a motor in PGA3D creating a spiral of triangles.
A motor is a multivector that combines a rotor (specifies a 3D rotation) with a translator (specifies, naturally enough, a 3D translation). You can then apply this multivector to another to do both at the same time. Clojure's `iterate` is a pleasure here:
(take steps (iterate (fn [s] (map #(transform % motor) s)) shape))