SurveyVariableValues#

class tangles.convenience.SurveyVariableValues(var: SurveyVariable)#

This class manages the interaction of variables (and their lists of values) and features (or separations).

Objects of this class represent the values a survey variable can take after all or a part of the corresponding features (or separations) are specified (or oriented) by a tangle.

For example: We assume we have a tangle that contains some specified features corresponding to this variable. If an ordinal variable can take values in \(\{1, \dots, 10\}\) and our tangle contains two specified features, one containing points with values greater than \(4\) and one containing points with values smaller than \(7\), then the remaining possible values of this variable in our tangle are \(\{5,6\}\).

Parameters#

varclass:SurveyVariable

The corresponding survey variable.

Methods

invert_op()

Invert an operation contained in a metadata tuple

possible_values_representation()

Return a representation of the possible values the corresponding variable can take (according to specifications seen so far)

update_values_for_specification()

Update the list of possible values a variable can take