I am trying to find the expected connectivity of two line segments, $L_1$,$L_2$, based on 'functional' distance, $E(f(d))$. For context, consider a fish travelling between two segments on a river where $f(d)$ represents the probability of the fish reaching $L_2$ from $L_1$ based on an inverse relationship with distance.
Assume that $L_1$ and $L_2$ do not overlap and are segments along the line, $L$. The distances between $L_1$ and $L_2$ are assumed to be from pairs of points, $(P_1,P_2)$, randomly drawn and uniformly distributed on each segment. The 'functional' distance, $f(d)$ ($[0,1]$) may be one of several non-linear distance functions that approach $f(d)=0$ as $d$ increases.
Without a distance function, I believe $E(d)$ is simply the distance from the midpoints of $L_1$ and $L_2$; it should be the centroid of a rectangle, $(P_1,P_2)$, formed from the set of all possible point-pairs. I am concluding that from this answer, which seems applicable because the random points on $L_1$ and $L_2$ are uniformly distributed and independent, therefore $(P1,P2)$ is uniformly distributed on a rectangle.
However, how do I evaluate $E(f(d))$? The probability distribution of all $d$'s intuitively seems symmetrical and centred on $E(d)$ but in contrast it seems that $(f(d))$ is probably asymmetrical. intuitively it seems it will lead to a problem where integrating (f(d)) is required.
I am assuming this is more tractable than the related question asked and answered here. If I understand it correctly, my situation is simplified because $L_1$ and $L_2$ are assumed to be aligned along $L$ and do not overlap. This is well outside my area of expertise, so any help is much appreciated.