import pyLHD
random_lhd = pyLHD.LatinHypercube(size = (10,3))
phi_p = pyLHD.Criteria(random_lhd, 'phi_p')
phi_p.compute()2.507744009345771
criteria.Criteria(self, arr, type)
A class representing a collection of criteria functions. This class allows for the selection and computation of various criteria functions based on the specified type. It supports all criteria found in pyLHD
| Name | Type | Description | Default |
|---|---|---|---|
arr |
numpy.numpy.ArrayLike | A numpy ndarray | required |
type |
str | A string representing the type of criteria function to be used. | required |
| Type | Description |
|---|---|
| ValueError | If the specified criteria type is not recognized. |
Examples:
import pyLHD
random_lhd = pyLHD.LatinHypercube(size = (10,3))
phi_p = pyLHD.Criteria(random_lhd, 'phi_p')
phi_p.compute()2.507744009345771
Compute phi_p criteria with additional arguments