summaryrefslogtreecommitdiff
path: root/ot/datasets.py
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2018-05-30 09:30:21 +0200
committerRémi Flamary <remi.flamary@gmail.com>2018-05-30 09:30:21 +0200
commit90e42f32bdf0dd06667edaf172c51f4d4fce2c8b (patch)
treef5e4172c035729342ed998263ebba1b92bd7b608 /ot/datasets.py
parent507003fe975c80b069d8527b547f0abc4852d16a (diff)
replace function name tin tests
Diffstat (limited to 'ot/datasets.py')
-rw-r--r--ot/datasets.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/ot/datasets.py b/ot/datasets.py
index bbb77fb..362a89b 100644
--- a/ot/datasets.py
+++ b/ot/datasets.py
@@ -12,7 +12,7 @@ import scipy as sp
from .utils import check_random_state, deprecated
-def get_1D_gauss(n, m, s):
+def make_1D_gauss(n, m, s):
"""return a 1D histogram for a gaussian distribution (n bins, mean m and std s)
Parameters
@@ -37,6 +37,12 @@ def get_1D_gauss(n, m, s):
return h / h.sum()
+@deprecated()
+def get_1D_gauss(n, m, sigma, random_state=None):
+ """ Deprecated see make_1D_gauss """
+ return make_1D_gauss(n, m, sigma, random_state=None)
+
+
def make_2D_samples_gauss(n, m, sigma, random_state=None):
"""return n samples drawn from 2D gaussian N(m,sigma)