Compare two distributions (e.g. two frequency spectra) by
computing the log-spectral distance
Usage
logspec.dist(spec1, spec2)
Arguments
Value
A numeric vector of length 1 returning the D distance.
Details
The distance is computed according to:
$$D_{LS}(spec1 \Vert spec2) = D_{LS}(spec2 \Vert spec1) = \sqrt{\sum{10
\times log_{10}(\frac{spec1}{spec2})^{2}}}$$