# Distance by optimal transport

**URL:** <https://discourse.flucoma.org/t/distance-by-optimal-transport/861>\
**Category:** Interesting Links\
**Created:** [April 9, 2021, 9:59am UTC](https://discourse.flucoma.org/t/distance-by-optimal-transport/861 "2021-04-09T09:59:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesbradbury](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/jamesbradbury/32/1252_2.png) [@jamesbradbury](https://discourse.flucoma.org/u/jamesbradbury)\
**Post date:** [April 9, 2021, 9:59am UTC](https://discourse.flucoma.org/t/distance-by-optimal-transport/861/1 "2021-04-09T09:59:42Z")

</div>

Came acros this nifty paper which is mostly jargon to me but inspires the creative coding mind 🙂

> **[2004.09152.pdf](https://arxiv.org/ftp/arxiv/papers/2004/2004.09152.pdf)**
>
> 672.57 KB

Seems closesly relevant to something like audiotransport~. It would be cool to be able to compute distances between buffers of data using the OT metric I think. I have used cosine/euclidian distance in attempts to evaluate how far apart spectral bases are with nmf and more ways of investigating this kind of thing could be useful in decomposition and for whizzing around ones corpus by similarity.

also code!

[https://baggepinnen.github.io/SpectralDistances.jl/latest/](https://baggepinnen.github.io/SpectralDistances.jl/latest/)

---

<div class="post-metadata">

**Author:** ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Post date:** [April 9, 2021, 12:11pm UTC](https://discourse.flucoma.org/t/distance-by-optimal-transport/861/2 "2021-04-09T12:11:35Z")

</div>

soon the C++ code will be public, so you can make new objects by plundering the magic - and maybe even propose PR, imagine!

---

<div class="post-metadata">

**Author:** ![jamesbradbury](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/jamesbradbury/32/1252_2.png) [@jamesbradbury](https://discourse.flucoma.org/u/jamesbradbury)\
**Post date:** [April 9, 2021, 1:03pm UTC](https://discourse.flucoma.org/t/distance-by-optimal-transport/861/3 "2021-04-09T13:03:23Z")

</div>

wow! soon ™
