Introduction - If you have any usage issues, please Google them yourself
Simple trend calculation
I needed to have a simple linear trend calculation for X values either as double or datetime. So basically the Y value for a single item is always a double but the type of the X varies. Beyond that, I needed basic statistics calculated from the values. These included:
Slope
Y-intercept
Correlation coefficient
R-squared value