mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
floats: document LSM
This commit is contained in:
parent
e91142f4e9
commit
f067c92733
|
@ -192,6 +192,7 @@ func (s Slice) LSM() float64 {
|
|||
return LSM(s)
|
||||
}
|
||||
|
||||
// LSM is the least squares method for linear regression
|
||||
func LSM(values Slice) float64 {
|
||||
var sumX, sumY, sumXSqr, sumXY = .0, .0, .0, .0
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user