File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,9 @@ func main() {
8080
8181 // PushFixed method will keep the size of the Data vector constant.
8282 // Oldest data points will be evicted as points are added.
83- // WARNING: Mixing Push() and PushFixed() will result in failure!
8483 anom2 , _ := anomalyzer.NewAnomalyzer (conf, data)
85- prob2 , _ := anom2.PushFixed (8.0 )
86- // returns an error as second value if the array size changed unexpectantly
84+ prob2 , _ := anom2.PushFixed (8.0 )
85+ // returns an error as second value if the array size changed unexpectantly
8786 fmt.Println (" Anomalous Probability:" , prob2)
8887}
8988```
Original file line number Diff line number Diff line change @@ -139,7 +139,6 @@ func (a *Anomalyzer) Push(x float64) float64 {
139139 return a .Eval ()
140140}
141141
142- // WARNING: Mixing Push() and PushFixed() will result in failure!
143142func (a * Anomalyzer ) PushFixed (x float64 ) (float64 , error ) {
144143 // Add data to fixed size array which will not grow
145144 err := a .Data .PushFixed (x )
You can’t perform that action at this time.
0 commit comments