spacefilling
spacefilling
Bases: designs
Source code in spotPython/design/spacefilling.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
__init__(k=2, seed=123)
Spacefilling design class
Parameters:
Name | Type | Description | Default |
---|---|---|---|
k |
int
|
number of design variables (dimensions). Defaults to 2. |
2
|
seed |
int
|
random seed. Defaults to 123. |
123
|
Source code in spotPython/design/spacefilling.py
10 11 12 13 14 15 16 17 18 19 20 21 |
|
scipy_lhd(n, repeats=1, lower=None, upper=None)
Latin hypercube sampling based on scipy.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
n |
int
|
number of samples |
required |
repeats |
int
|
number of repeats (replicates) |
1
|
lower |
int
|
lower bound. Defaults to 0. |
None
|
upper |
int
|
upper bound. Defaults to 1. |
None
|
Returns:
Type | Description |
---|---|
numpy.ndarray
|
Latin hypercube design. |
Source code in spotPython/design/spacefilling.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|