def skewed_lorentzian(x, bkg, bkg_slp, skw, mintrans, res_f, Q):
    """ Skewed Lorentzian model.

    Parameters
    ----------
    x : float
        The x-data to build the skewed Lorentzian
    bkg : float
        The DC value of the skewed Lorentzian
    bkg_slp : float
        The slope of the skewed Lorentzian
    skw : float
        The skewness of the Lorentzian
    mintrans : float
        The minimum of the trans. This is associated with the skewness term.
    res_f : float
        The center frequency of the resonator (the center of the Lorentzian)
    Q : float
        The Q of the resonator

    Returns
    -------
    float
        The model of the Lorentzian
    """
    return bkg + bkg_slp*(x-res_f)-(mintrans+skw*(x-res_f))/\
        (1+4*Q**2*((x-res_f)/res_f)**2)