fixed some bugs in jensen shannon and kullback leibler

This commit is contained in:
toni
2017-04-17 16:50:56 +02:00
parent a9cd8d5e68
commit 200aa94ca8
7 changed files with 107 additions and 6 deletions

View File

@@ -56,8 +56,8 @@ namespace Divergence {
// calc PQratio
if(Q[i] == 0.0){
Assert::doThrow("Division by zero is not allowed ;).");
//PQratio = P[i] / 0.00001;
//Assert::doThrow("Division by zero is not allowed ;).");
PQratio = P[i] / 0.00001;
} else {
PQratio = P[i] / Q[i];
}