Skip to content

Commit 5ea889d

Browse files
committed
Removing warning for problem which has been fixed and tab fix
1 parent 7a58565 commit 5ea889d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
```

anomalyze.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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!
143142
func (a *Anomalyzer) PushFixed(x float64) (float64, error) {
144143
// Add data to fixed size array which will not grow
145144
err := a.Data.PushFixed(x)

0 commit comments

Comments
 (0)