Skip to content

Commit

Permalink
Removing warning for problem which has been fixed and tab fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ropes committed Nov 11, 2015
1 parent 7a58565 commit 5ea889d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ func main() {

// PushFixed method will keep the size of the Data vector constant.
// Oldest data points will be evicted as points are added.
// WARNING: Mixing Push() and PushFixed() will result in failure!
anom2, _ := anomalyzer.NewAnomalyzer(conf, data)
prob2, _ := anom2.PushFixed(8.0)
// returns an error as second value if the array size changed unexpectantly
prob2, _ := anom2.PushFixed(8.0)
// returns an error as second value if the array size changed unexpectantly
fmt.Println("Anomalous Probability:", prob2)
}
```
Expand Down
1 change: 0 additions & 1 deletion anomalyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ func (a *Anomalyzer) Push(x float64) float64 {
return a.Eval()
}

// WARNING: Mixing Push() and PushFixed() will result in failure!
func (a *Anomalyzer) PushFixed(x float64) (float64, error) {
// Add data to fixed size array which will not grow
err := a.Data.PushFixed(x)
Expand Down

0 comments on commit 5ea889d

Please sign in to comment.