summaryrefslogtreecommitdiff
path: root/ot/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'ot/utils.py')
-rw-r--r--ot/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot/utils.py b/ot/utils.py
index 47fe77f..d3df8fa 100644
--- a/ot/utils.py
+++ b/ot/utils.py
@@ -9,7 +9,7 @@ from scipy.spatial.distance import cdist
def kernel(x1,x2,method='gaussian',sigma=1,**kwargs):
"""Compute kernel matrix"""
if method.lower() in ['gaussian','gauss','rbf']:
- K=np.exp(dist(x1,x2)/(2*sigma**2))
+ K=np.exp(-dist(x1,x2)/(2*sigma**2))
return K
def unif(n):