Cantor's pairing / unpairing for non diagonal unordered pairs1. Intention This article is a quick follow up to the previous blog entry about creating a logical index from an unordered, non diagonal pair, based upon the Cantor's pairing algorithm. 2. Cantor's pairing Cantor's pairing function \(C(x,y)\)associat...Mar 22, 2024 · 3 min readtheancientlich.hashnode.dev
A simple pairing / unpairing algorithm for ... pairs!1. Intention This article addresses the math and code for \((x,y)\) integer pairs, and their corresponding logical order indices. If the code below resonates with you, this article might be helpful: int logicalIndex=0; int n = ...; for (int x = 0; x ...Mar 16, 2024 · 7 min readtheancientlich.hashnode.dev
1D Cubic Bezier Curve Fitting1. Intention This blog post goes through all the math behind fitting a one-dimensional cubic Bezier curve to a data set, using the least squares regression method. There are multiple implementation of this algorithm in MathLab, Python, C++, etc… but ...Dec 15, 2023 · 6 min readtheancientlich.hashnode.dev