Col
- class pyoptex.doe.constraints.Col(col, factor, colstart=0)[source]
The base Column object to represent a constraint. If this object is contained in a variable called constraint, use constraint.func() to retrieve a function which can evaluate the specified constraints on a decoded design matrix. Use constraint.encode() to retrieve a function which can evaluate the specified constraints on an encoded design matrix.
Attributes
- colfloat or int or string
Meaning depends on the value of factor.
- factorNone or
Factor If None, this column represents a simple constant and col represents the constant value. Otherwise, it represents the column and the attribute col represents the index of the factor in the design.
- colstartint
The start of the column in the encoded design matrix.
- is_constantbool
Whether this column is a constant
- is_categoricalbool
Whether this is a categorical column