wagoner47 / clhs_py

Conditioned Latin Hypercube Sampling in Python - Docs:

Home Page:https://clhs-py.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`bins` must increase monotonically, when an array

AlexandreLab opened this issue · comments

Hello,

Thank you for creating this implementation of cLHS in Python.

I ran it on my computer and I got an error. This happens when the number of samples is high and the cumulative distribution of my data has the same value for a long time.
I did a bit of research and found out that the get_strata function is not always returning a monotonic quantiles list which raises an error when used in the count_matrix function. I am not sure why this is the case but it seems that rounding the quantiles list fix the problem.
BR,
Alexandre

Hi Alex, thank you very much! You may create a pull request.