def anisotropy_from_monomer(m, Am, Ad, b):
    """
    Calculate anisotropy from monomer fraction, monomer and dimer anisotropy
    and brightness relation.
    """
    return (Ad*b+(Am-b*Ad)*m)/(b+(1-b)*m)