Skip to content

Supplementary material to the paper accompanying SpectralDistances.jl

Notifications You must be signed in to change notification settings

baggepinnen/SpectralDistances_supplementary_material

Repository files navigation

Supplementary material to SpectralDistances.jl

This repository contains the code to generate the figures in the paper

"New Metrics Between Rational Spectra and their Connection to Optimal Transport", Bagge Carlson and Chitre 2020

with the accompanying software package SpectralDistances.jl.

The code is written in Julia, https://julialang.org/

Installation instructions

  1. Install julia v1.4 or later (instructions)
  2. To ensure that the same environment is instantiated as was used to create the figures in the paper, use the Manifest.toml file checked into this repository. Navigate to the folder of this repo, start julia, then run
julia> using Pkg
julia> pkg"activate ."      # Activate the current folder's environment
julia> pkg"instantiate -m"  # Instantiate the environment, this installs all packages
  1. Examples can now be run by including the corresponding script. Example:
julia> include("kbarycenters_birds.jl")

Dpending on which backend is chosen for Plots.jl, you may only see the last plot produced by each script. For scripts that produce more than one plot, you may opt to execute individual blocks of code separately.

Datasets

The code assumes that the datasets provided under the links below exist in subfolders to this folder, named

Scripts

  • cumulative_spectra.jl reproduces figure 2.
  • varying_parameters.jl reproduces figures 4-5.
  • lowrankmodels.jl reproduces figure 7.
  • interpolation.jl reproduces figures 8-9.
  • ship_detection.jl reproduces figures 10-11.
  • kbarycenters_birds.jl reproduces figure 12. This script requires the birds dataset listed above.

About

Supplementary material to the paper accompanying SpectralDistances.jl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages