import pyLHD
x = pyLHD.LatinSquare(size = (5,5), baseline = 3, seed = 1)
xarray([[4, 6, 3, 6, 4],
[6, 7, 5, 4, 6],
[3, 5, 6, 5, 5],
[7, 4, 4, 3, 3],
[5, 3, 7, 7, 7]])
helpers.zero_base(arr)
Normalize the columns by subtracting the minimum element of each column
| Name | Type | Description | Default |
|---|---|---|---|
arr |
numpy.numpy.ArrayLike | A numpy ndarray | required |
| Type | Description |
|---|---|
| numpy.numpy.ndarray | A normalized array such that the columns are subtracted by the minimum element of each column |
Example:
array([[4, 6, 3, 6, 4],
[6, 7, 5, 4, 6],
[3, 5, 6, 5, 5],
[7, 4, 4, 3, 3],
[5, 3, 7, 7, 7]])