weighting functions for bip and fc profiles

functions calculating the weight of the kth segment of particle movement
for the denoted gradient profile.

First parameter: r+k
Second parameter: N