comment update
This commit is contained in:
parent
b41d05a2f4
commit
64d2ef25c7
1 changed files with 1 additions and 2 deletions
|
@ -100,8 +100,7 @@ func (prs *PolynomialRegressionSeries) GetValue(index int) (x, y float64) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetLastValue computes the last moving average value but walking back window size samples,
|
// GetLastValue computes the last poly regression value.
|
||||||
// and recomputing the last moving average chunk.
|
|
||||||
func (prs *PolynomialRegressionSeries) GetLastValue() (x, y float64) {
|
func (prs *PolynomialRegressionSeries) GetLastValue() (x, y float64) {
|
||||||
if prs.InnerSeries == nil || prs.InnerSeries.Len() == 0 {
|
if prs.InnerSeries == nil || prs.InnerSeries.Len() == 0 {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue