I have an array of doubles and want to calculate flatness of it\'s values. Index of a value is X, while value itself is Y. I want to know if I were to draw a line between th