import math


def calculate_pl_abg_nlos(distance_km, radio_frequency, alpha, beta, gamma, sigma):
    """
    Calculate the path loss for non line of sight with abg generic model given following parameters
    :param distance_km: distance from the vehicle to cell
    :param radio_frequency: radio frequency used in the mobile UL and DL
    :param alpha: alpha
    :param beta: beta (in dB)
    :param gamma: gamma
    :param sigma: sigma (in dB)
    :return: pl_abg_nlos (in db)
    """
    return 10 * alpha * math.log10(distance_km * 1000) + beta + 10 * gamma * math.log10(radio_frequency/1000000000)\
           + sigma