reg_dist: Distance based on the regression parameters
Description
Dataset X is binned into 5 bins in x-direction. A regression line is fitted to the
data in each bin and the regression coefficients are noted. Same is done for
dataset PX. An euclidean distance is calculated between the two sets of regression
parameters. If the relationship between X and PX looks linear, number of bins should
be equal to 1.