SpectralDistances
This package facilitates the calculation of distances between signals, primarily in the frequency domain. The main functionality revolves around rational spectra, i.e., the spectrum of a rational function, known as a transfer function, an autoregressive model or an autoregressive moving-average model.
This repository implements all optimal-transport based distances between spectra detailed in the following pre-pre print
Installation
The package is registered and you may install it by
using Pkg
pkg"add SpectralDistances"
High-level overview
The main workflow is as follows
- Define a distance
- Evaluate the distance between two points (signals, histograms, periodograms, etc.)
You can also calculate barycenters, interpolations, and barycentric coordinates of signals under the chosen distance.
This package extends Distances.jl and all distance types are subtypes of Distances.PreMetric
, even though some technically are true metrics and some are not even pre-metrics.
Many distances are differentiable and can thus be used for gradient-based learning. The rest of this manual is divided into the following sections
Contents
- Distances
- Time-Frequency distances
- Models and root manipulations
- Interpolations and Barycenters
- Plotting
- Misc.
- Examples
- Task View
All Exported functions and types
SpectralDistances.AbstractDistance
SpectralDistances.AbstractRationalDistance
SpectralDistances.AbstractSignalDistance
SpectralDistances.BuresDistance
SpectralDistances.CoefficientDistance
SpectralDistances.ConvOptimalTransportDistance
SpectralDistances.DiscreteGridTransportDistance
SpectralDistances.DiscreteGridTransportDistance
SpectralDistances.DiscretizedRationalDistance
SpectralDistances.EnergyDistance
SpectralDistances.EuclideanRootDistance
SpectralDistances.HungarianRootDistance
SpectralDistances.KernelWassersteinRootDistance
SpectralDistances.ModelDistance
SpectralDistances.OptimalTransportHistogramDistance
SpectralDistances.OptimalTransportRootDistance
SpectralDistances.RationalCramerDistance
SpectralDistances.RationalOptimalTransportDistance
SpectralDistances.SCWorkspace
SpectralDistances.SlidingConvOptimalTransportDistance
SpectralDistances.SymmetricDistance
SpectralDistances.WelchLPDistance
SpectralDistances.WelchOptimalTransportDistance
SpectralDistances.IPOT
SpectralDistances.complete_distmat
SpectralDistances.discrete_grid_transportcost
SpectralDistances.discrete_grid_transportplan
SpectralDistances.distmat
SpectralDistances.distmat_euclidean
SpectralDistances.distmat_euclidean!
SpectralDistances.domain
SpectralDistances.domain_transform
SpectralDistances.mask_filter
SpectralDistances.normalize_spectrogram
SpectralDistances.ot_convex
SpectralDistances.ot_jump
SpectralDistances.precompute
SpectralDistances.sinkhorn
SpectralDistances.sinkhorn_convolutional
SpectralDistances.sinkhorn_convolutional
SpectralDistances.sinkhorn_log
SpectralDistances.sinkhorn_log!
SpectralDistances.sinkhorn_unbalanced
SpectralDistances.TimeDistance
SpectralDistances.TimeVaryingAR
SpectralDistances.TimeWindow
DynamicAxisWarping.dtwnn
SlidingDistancesBase.distance_profile
SpectralDistances.AR
SpectralDistances.ARMA
SpectralDistances.AbstractModel
SpectralDistances.ContinuousRoots
SpectralDistances.ContinuousRoots
SpectralDistances.DiscreteRoots
SpectralDistances.DiscreteRoots
SpectralDistances.FitMethod
SpectralDistances.HungarianAssignement
SpectralDistances.IRLS
SpectralDistances.LS
SpectralDistances.PLR
SpectralDistances.SortAssignement
SpectralDistances.TLS
ControlSystemsBase.denvec
ControlSystemsBase.tf
ControlSystemsBase.tf
PolynomialRoots.roots
SpectralDistances.change_precision
SpectralDistances.checkroots
SpectralDistances.coefficients
SpectralDistances.domain_transform
SpectralDistances.examplemodels
SpectralDistances.fitmodel
SpectralDistances.fitmodel
SpectralDistances.fitmodel
SpectralDistances.fitmodel
SpectralDistances.hungariansort
SpectralDistances.ls
SpectralDistances.normalization_factor
SpectralDistances.normalize_energy
SpectralDistances.plr
SpectralDistances.polar
SpectralDistances.reflect
SpectralDistances.residues
SpectralDistances.residues
SpectralDistances.residueweight
SpectralDistances.roots2poly
SpectralDistances.simplex_residueweight
SpectralDistances.spectralenergy
SpectralDistances.spectralenergy
SpectralDistances.unitweight