This function takes the following parameters:
Filter from which you want to get the next component (after fprev).
Filter within the specified filter f.