summaryrefslogtreecommitdiff
path: root/libs/qm-dsp/maths/KLDivergence.cpp
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-10-04 15:11:15 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-10-04 15:11:15 -0400
commit4178db5f632721eefb58c42d684fc10f8f4fb9da (patch)
treea549de293b1a4dd6b5c3f5070f44f95e5e829f46 /libs/qm-dsp/maths/KLDivergence.cpp
parent4dc63966f0872efe768dad61eb9b8785d06b92d1 (diff)
globally remove all trailing whitespace from .cpp and .hpp files missed by previous commit
Diffstat (limited to 'libs/qm-dsp/maths/KLDivergence.cpp')
-rw-r--r--libs/qm-dsp/maths/KLDivergence.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/qm-dsp/maths/KLDivergence.cpp b/libs/qm-dsp/maths/KLDivergence.cpp
index 3c3cb134ca..3502afb5cc 100644
--- a/libs/qm-dsp/maths/KLDivergence.cpp
+++ b/libs/qm-dsp/maths/KLDivergence.cpp
@@ -50,7 +50,7 @@ double KLDivergence::distanceDistribution(const vector<double> &d1,
double d = 0;
double small = 1e-20;
-
+
for (int i = 0; i < sz; ++i) {
d += d1[i] * log10((d1[i] + small) / (d2[i] + small));
}