Given a straight line that deviates from the horizontal by at most 15 degrees.
On this straight line there are bumps on top at random places on the line. The combined width of the bumps is at most 10% of the length of the straight line (but could be as little as 3 or 4 % of the length) and the height of the bumps is at most 5% of the length of the straight line. I can sample and get the x and y co-ordinates of the top of the line every 1% of the lines length.
I need a formula for how much the line deviates from the horizontal.
This is actually part of an Optical Character Recognition program, and I need this formula to write the software to align a page that was scanned not perfectly horizontally.