c@256: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ c@256: c@256: /* c@256: QM DSP Library c@256: c@256: Centre for Digital Music, Queen Mary, University of London. c@256: This file copyright 2008 QMUL c@256: All rights reserved. c@256: */ c@256: c@256: #ifndef KLDIVERGENCE_H c@256: #define KLDIVERGENCE_H c@256: c@256: #include c@256: c@256: using std::vector; c@256: c@256: /** c@256: * Calculate a symmetrised Kullback-Leibler divergence of Gaussian c@256: * models based on mean and variance vectors. All input vectors must c@256: * be of equal size. c@256: */ c@256: c@256: class KLDivergence c@256: { c@256: public: c@256: KLDivergence() { } c@256: ~KLDivergence() { } c@256: c@256: double distance(const vector &means1, c@256: const vector &variances1, c@256: const vector &means2, c@256: const vector &variances2); c@256: }; c@256: c@256: #endif c@256: