Prototype code for minimax line fitting - Embedded.com

Prototype code for minimax line fitting

#Chris Thron, 18 March 2010#Input to function is the vector of Y-coordinates #X-coordinates are assumed to be 1,2,3,…. (user can rescale at will)#Function returns [slope, intercept] of fitted line

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.