Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative floats return incorrect table #18

Open
wkew opened this issue Nov 3, 2022 · 1 comment
Open

Negative floats return incorrect table #18

wkew opened this issue Nov 3, 2022 · 1 comment

Comments

@wkew
Copy link

wkew commented Nov 3, 2022

When generating a Latin hypercube sampling (simple or space filled), input factors with negative value levels return a table with incorrect values.

For example,

build.lhs(
{'a':[-1,-5],
'b':[-3,-6],
'c':[1,2]})

returns a table like (numbers truncated for display)

   a        b      c
 0.5     -1.9     1.0
-0.76    -0.78    1.95
-0.04    -2.14    1.43

where clearly the options for A and B are out of bounds for the provided levels, whereas c is correct.

Python 3.8.13
doepy version 0.0.1 installed from pip

@gedeck
Copy link

gedeck commented Jan 9, 2023

The order of the boundaries is important (minValue maxValue). Try:

build.lhs(
{'a':[-5,-1],
'b':[-6,-3],
'c':[1,2]})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants