def MDL(N, rho, k):
    'Minimum Description Length\n\n    .. math:: MDL(k) = N log \\rho_k + p \\log N\n\n    :validation: results\n    '
    from numpy import log
    mdl = ((N * log(rho)) + (k * log(N)))
    return mdl
Minimum Description Length

.. math:: MDL(k) = N log \rho_k + p \log N

:validation: results
def MDL(N, rho, k):
    'Minimum Description Length\n\n    .. math:: MDL(k) = N log \\rho_k + p \\log N\n\n    :validation: results\n    '
    from numpy import log
    mdl = ((N * log(rho)) + (k * log(N)))
    return mdl