'Calculates values of contingency table marginals from its values.
>>> TrigramAssocMeasures._marginals(1, 0, 0, 0, 0, 72, 0, 1927)
(1, (1, 1, 1), (1, 73, 1), 2000)'

@staticmethod
def _marginals(*contingency):

    (n_iii, n_oii, n_ioi, n_ooi, n_iio, n_oio, n_ioo, n_ooo) = contingency
    return (n_iii, ((n_iii + n_iio), (n_iii + n_ioi), (n_iii + n_oii)), ((((n_iii + n_ioi) + n_iio) + n_ioo), (((n_iii + n_oii) + n_iio) + n_oio), (((n_iii + n_oii) + n_ioi) + n_ooi)), sum(contingency))
