Mercurial > hg > qm-dsp
diff maths/KLDivergence.h @ 493:bb78ca3fe7de
Remove "using" from some headers
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 31 May 2019 17:24:50 +0100 |
parents | 701233f8ed41 |
children |
line wrap: on
line diff
--- a/maths/KLDivergence.h Fri May 31 16:55:25 2019 +0100 +++ b/maths/KLDivergence.h Fri May 31 17:24:50 2019 +0100 @@ -17,8 +17,6 @@ #include <vector> -using std::vector; - /** * Helper methods for calculating Kullback-Leibler divergences. */ @@ -33,10 +31,10 @@ * models based on mean and variance vectors. All input vectors * must be of equal size. */ - double distanceGaussian(const vector<double> &means1, - const vector<double> &variances1, - const vector<double> &means2, - const vector<double> &variances2); + double distanceGaussian(const std::vector<double> &means1, + const std::vector<double> &variances1, + const std::vector<double> &means2, + const std::vector<double> &variances2); /** * Calculate a Kullback-Leibler divergence of two probability @@ -44,8 +42,8 @@ * symmetrised is true, the result will be the symmetrised * distance (equal to KL(d1, d2) + KL(d2, d1)). */ - double distanceDistribution(const vector<double> &d1, - const vector<double> &d2, + double distanceDistribution(const std::vector<double> &d1, + const std::vector<double> &d2, bool symmetrised); };