I am having a series of data from a pixel detector, and I plot the ADC values of each pixel and know I want to calculate the slope and y-intercept of each pixels using root, will any one help me doing the fit to the line and calculating slope and y-intercept using root?