'From an association measure function, produces a new function which
accepts contingency table values as its arguments.'

@staticmethod
def _make_contingency_fn(measures, old_fn):

    def res(*contingency):
        return old_fn(*measures._marginals(*contingency))
    res.__doc__ = old_fn.__doc__
    res.__name__ = old_fn.__name__
    return res
