From: Tomas Musil Date: Tue, 24 Jun 2014 13:19:50 +0000 (+0200) Subject: comments for lhs X-Git-Url: http://git.tomasm.cz/imago.git/commitdiff_plain/aee4ac06404d796d7bd64d99539c113149749925?hp=dfd21c7829d456a1c05db4fb0ef10c5994e2469a comments for lhs --- diff --git a/imago_pack/gridf.py b/imago_pack/gridf.py index fe16f53..dfb1e86 100644 --- a/imago_pack/gridf.py +++ b/imago_pack/gridf.py @@ -1,4 +1,4 @@ -"""Imago grid-fitting module""" +"""Imago grid-fitting module.""" import multiprocessing from functools import partial diff --git a/imago_pack/lhs.py b/imago_pack/lhs.py index c890dfe..71f88ff 100644 --- a/imago_pack/lhs.py +++ b/imago_pack/lhs.py @@ -1,3 +1,5 @@ +"""Latin hypercube sampling.""" + import random def test(): @@ -16,6 +18,7 @@ def test(): sys.exit() def latin_hypercube(dim, bound, m): + """Get a sample of *dim* dimentions, each in range (-*bound*, +*bound*).""" dv = (2 * bound) / float(m) dim_p = [range(m) for _ in xrange(dim)] for p in dim_p: