Message393772
> The named tuple should be called Line because that is what it describes. Also, a Line class would be reusuable for other purposes that linear regression.
I think that most people would expect that a Line class would represent a straight line widget in a GUI, not the coefficients of a linear equation.
The result tuple represents an equation (or at least the coefficients of such), not the line itself. If it doesn't have a .draw() method, I don't think we should call it "Line". |
|
Date |
User |
Action |
Args |
2021-05-16 23:53:01 | steven.daprano | set | recipients:
+ steven.daprano, rhettinger, pablogsal |
2021-05-16 23:53:01 | steven.daprano | set | messageid: <1621209181.72.0.965512949735.issue44151@roundup.psfhosted.org> |
2021-05-16 23:53:01 | steven.daprano | link | issue44151 messages |
2021-05-16 23:53:01 | steven.daprano | create | |
|