Matrix.
add_continuous_criterion
Add a continuous criterion into the matrix to evaluate each choice against.
criterion (str) – Name of the criterion to add.
weight (float) – How important this criterion is (usually on a 0-10 scale).
ValueError – If a weight value is zero.
ValueError
Examples
>>> import matrix >>> m = matrix.Matrix() >>> m.add_continuous_criterion('price', weight=7) >>> m | | price | |:-------|--------:| | Weight | 7 |
>>> m.continuous_criteria ['price']