adds last value for poly reg

This commit is contained in:
Will Charczuk 2017-04-21 13:31:19 -07:00
parent 0cbbd0887a
commit b41d05a2f4
2 changed files with 20 additions and 2 deletions

View file

@ -77,8 +77,7 @@ func (lrs *LinearRegressionSeries) GetValue(index int) (x, y float64) {
return
}
// GetLastValue computes the last moving average value but walking back window size samples,
// and recomputing the last moving average chunk.
// GetLastValue computes the last linear regression value.
func (lrs *LinearRegressionSeries) GetLastValue() (x, y float64) {
if lrs.InnerSeries == nil || lrs.InnerSeries.Len() == 0 {
return