RelationshipBetween#
- class rojak.turbulence.analysis.RelationshipBetween(this_feature, other_feature, sum_over_dim='time')[source]#
Abstract base class for computing an association measure between two boolean features
Subclasses implement
execute()to compute a specific association measure (e.g. Jaccard index, conditional probability, Matthew’s Correlation Coefficient, odds ratio, or relative risk) betweenthis_featureandother_feature. SeeRelationshipBetweenFactoryfor constructing the appropriate subclass from aRelationshipBetweenTypes.- Parameters:
- __init__(this_feature, other_feature, sum_over_dim='time')[source]#
- Parameters:
- Raises:
AssertionError – If
this_featureandother_featureare not both boolean, or ifother_feature’s coordinates are not a subset ofthis_feature’s- Return type:
None
Methods
__init__(this_feature, other_feature[, ...])execute()Compute the association measure between
self._this_featureandself._other_feature, see subclasses