fitting of straight line