https://github.com/beastyblacksmith/spectraldistances.jl

Measure the distance between two spectra/signals using optimal transport and related metrics

https://github.com/beastyblacksmith/spectraldistances.jl

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.0%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Measure the distance between two spectra/signals using optimal transport and related metrics

Basic Info
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Fork of baggepinnen/SpectralDistances.jl
Created about 6 years ago · Last pushed about 6 years ago

https://github.com/BeastyBlacksmith/SpectralDistances.jl/blob/master/

[![CI](https://github.com/baggepinnen/SpectralDistances.jl/workflows/CI/badge.svg)](https://github.com/baggepinnen/SpectralDistances.jl/actions)
[![codecov](https://codecov.io/gh/baggepinnen/SpectralDistances.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/baggepinnen/SpectralDistances.jl)
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://baggepinnen.github.io/SpectralDistances.jl/latest)

This repository implements all optimal-transport based distances between spectra detailed in the following pre print

["New Metrics Between Rational Spectra and their Connection to Optimal Transport", Bagge Carlson and Chitre 2020](http://arxiv.org/abs/2004.09152)

**Supplementary material** to the paper is provided in a [separate repository](https://github.com/baggepinnen/SpectralDistances_supplementary_material).

The package also contains a number of generic solvers for optimal transport problems:
- Fixed support in 1d (histograms)
- Varying discrete support (atoms/dirac masses) with non-uniform masses in any dimension
- Barycenters supported on fixed number of atoms, but possibly with non-uniform masses
- Barycentric coordinates
- Continuous support in 1d

See the [documentation](https://baggepinnen.github.io/SpectralDistances.jl/latest) for instructions.

### Installation
```julia
using Pkg
pkg"add SpectralDistances"
```

![window](figs/spec.svg)
> Interpolation between two rational spectra under four different metrics.

![window](figs/demon.svg)
> Barycenter of three spectra and mixed spectrum which can be decomposed into a combination of the three input spectra


## Example: Barycentric interpolation of spectrograms
The image below illustrates interpolation between 4 Mel spectrograms, each one representing a short whistle. See the folder `examples` for the code.

![barycenters](examples/barycenters.png)

See the [docs](https://baggepinnen.github.io/SpectralDistances.jl/latest) for more examples.

Owner

  • Name: Simon Christ
  • Login: BeastyBlacksmith
  • Kind: user
  • Location: Hannover
  • Company: Leibniz Universität Hannover

GitHub Events

Total
Last Year