def find_first_extremum(pccf_vec):
    """
    Find first extremum location.
    """
    for i in range(len(pccf_vec)):
        if i == 0:
            continue
        if pccf_vec[i] < pccf_vec[i-1]:
            return i - 1