def get_threshold(rows, bands):
    """Approximate threshold from bandwidth and number of rows

    :param rows: rows per band
    :param bands: number of bands
    :return: threshold value
    :rtype: float

    """
    return (1. / bands) ** (1. / rows)