<p>I have a set of approximately sinusoidal points from -1 to 1 in the XY plane. I need to &quot;map&quot; these points to an arbitrary curve defined by another set of points, so that one could see that this is the same curve now somewhere else in the XY plane. How can I do this?</p>

CC BY-SA 4.0
2024-08-18T18:31:02.390Z
Compute the optimal transport plan, it should give you a smooth map between the two sets of points. You can use [POT](https://pythonot.github.io/) to precompute this.
Hubble
CC BY-SA 4.0
2024-08-19T16:56:55.337Z
"this is the same curve now somewhere else in the XY plane": what???
Yves Daoust
<transformations><spline>
Warping a set of points to fit another set of points
Vanush Vee
# Warping a set of points to fit another set of points

(Asked by: username_0 on 2024-08-17)

I have a set of approximately sinusoidal points from -1 to 1 in the XY plane. I need to "map" these points to an arbitrary curve defined by another set of points, so that one could see that this is the same curve now somewhere else in the XY plane. How can I do this?

**Tags:** transformations, spline

> **Comments:**
> **username_1**: Compute the optimal transport plan, it should give you a smooth map between the two sets of points. You can use [POT](https://pythonot.github.io/) to precompute this.  
> **username_2**: "this is the same curve now somewhere else in the XY plane": what???  

---

## 0 answers

