partial_rsm
- pyoptex.utils.model.partial_rsm(nquad, ntfi, nlin)[source]
Creates a partial response surface model from a number of quadratic, two-factor interactions (tfi) and linear terms. First come the quadratic terms which can have linear, tfi and quadratic effects. Then come the tfi which can only have linear and tfi. Finally, there are the linear only effects.
Parameters
- nquadint
The number of main effects capable of having quadratic effects.
- ntfiint
The number of main effects capable of two-factor interactions.
- nlinint
The number of main effects only capable of linear effects.
Returns
- modelnp.array(2d)
The model array where each term is a row and the value specifies the power. E.g. [1, 0, 2] represents x0 * x2^2.