As the title suggests, I've been trying to find a parametric equation to describe the Greek meander pattern that's seen in a lot of historical architecture.
I've created a series of X and Y coordinates that traces it out:

And I have both a set of quasiperiodic data describing the X values:

And a set of periodic data describing the Y values:

How would I find the equation that describes these? At first I thought I had to do a Fourier series but I wouldn't even know where to start with a function like this.
Please help!


$\newcommand{\Brak}[1]{\left\langle#1\right\rangle}$Although Roland's (+1) piecewise function is efficient and accurate, a sketch of setting up a Fourier transform may be useful to posterity.
The two component functions are (quasi-)periodic with period $16$, so we may as well work on the interval $[0, 16]$ with the inner product $$ \Brak{f, g} = \frac{1}{8}\int_{0}^{16} f(t)g(t)\, dt. $$ The functions $$ c_{0}(t) = \frac{1}{\sqrt{2}},\qquad c_{k}(t) = \cos(2\pi kt/16),\quad s_{k}(t) = \sin(2\pi kt/16)\ \text{for $k$ positive} $$ form an orthonormal basis with respect to this inner product.
Let $X$ and $Y$ denote the piecewise-linear component functions, and set $Z(t) = X(t) - t/4$, so that $Z$ and $Y$ are periodic with period $16$. Using numerical integration (perhaps Simpson's rule, dividing $[0, 16]$ into $16n$ subintervals), approximate the Fourier coefficients $$ \widehat{Zc}_{k} = \Brak{Z, c_{k}},\quad \widehat{Zs}_{k} = \Brak{Z, s_{k}},\qquad \widehat{Yc}_{k} = \Brak{Y, c_{k}},\quad \widehat{Ys}_{k} = \Brak{Y, s_{k}} $$ for $0 \leq k \leq 4n$. (Formally, treat $s_{0} = 0$.) For the highest frequency terms, that gives four Simpson subdivision points per period.
Now we can reconstitute the approximate component functions: $$ \widehat{X} = \frac{t}{4} + \sum_{k=0}^{4n} \widehat{Zc}_{k} c_{k} + \widehat{Zs}_{k} s_{k},\qquad \widehat{Y} = \sum_{k=0}^{4n} \widehat{Yc}_{k} c_{k} + \widehat{Ys}_{k} s_{k}, $$ and plot the resulting parametric path.
As proof of concept, here's a plot with $n = 8$ ($128$ subdivisions for integrating, $32$ sine terms and $33$ cosine terms):