The linear fitting function used 1-indexed array notation instead of the Python-default 0-indexing. We discovered this by ending up with a divide-by-zero error when our x-values were roughly set to [0, 1], so the two 1 values were subtracted from each other.
The linear fitting function used 1-indexed array notation instead of the Python-default 0-indexing. We discovered this by ending up with a divide-by-zero error when our x-values were roughly set to [0, 1], so the two 1 values were subtracted from each other.